From 31e363a4c83cbddbc48a23979809434844ebd545 Mon Sep 17 00:00:00 2001 From: gutmet Date: Sun, 13 Nov 2022 21:30:08 +0100 Subject: [PATCH] script to upload file to tolino --- tolino | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tolino diff --git a/tolino b/tolino new file mode 100755 index 0000000..8e00f56 --- /dev/null +++ b/tolino @@ -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