script to upload file to tolino

master
gutmet 2022-11-13 21:30:08 +01:00
parent 4ee9629992
commit 31e363a4c8
1 changed files with 16 additions and 0 deletions

16
tolino Executable file
View File

@ -0,0 +1,16 @@
#!/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