diff options
Diffstat (limited to 'sync-to-kobo')
-rwxr-xr-x | sync-to-kobo | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sync-to-kobo b/sync-to-kobo index 37e06e1..edfabf1 100755 --- a/sync-to-kobo +++ b/sync-to-kobo @@ -6,12 +6,12 @@ # Parameters BASENAME="`basename $0`" BASEFOLDER="$HOME/data/doc" -COLLECTION="$1" +COLLECTION="$*" # Check if [ -z "$COLLECTION" ]; then echo "usage: $BASENAME <colletion>" - echo "available collections:" + echo "available base collections:" echo "" ls $BASEFOLDER exit 1 @@ -24,4 +24,4 @@ if [ ! -d "$BASEFOLDER/$COLLECTION" ]; then fi # Dispatch -lftp -c "open sftp://kobo && mirror -X *.sdr --delete -L -R $BASEFOLDER/$COLLECTION /mnt/sd/$COLLECTION" +lftp -c "open sftp://kobo && mirror -X *.sdr --delete -L -R \"$BASEFOLDER/$COLLECTION\" \"/mnt/sd/$COLLECTION\"" |