17 lines
222 B
Bash
Executable File
17 lines
222 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "USAGE: $0 FILE"
|
|
exit 1
|
|
fi
|
|
|
|
DIR="/media/$USER/tolino/Downloads/"
|
|
|
|
if [ -d "$DIR" ]; then
|
|
cp "$1" "$DIR" && sync
|
|
else
|
|
echo "tolino folder not available at $DIR"
|
|
fi
|