snippets/tolino

17 lines
222 B
Plaintext
Raw Normal View History

2022-11-13 21:30:08 +01:00
#!/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