diff --git a/systemd/grive-sync.sh b/systemd/grive-sync.sh index bb837ba..92b3f6e 100755 --- a/systemd/grive-sync.sh +++ b/systemd/grive-sync.sh @@ -15,7 +15,7 @@ cd ~ ### ARGUMENT PARSING ### SCRIPT="${0}" -DIRECTORY=$(systemd-escape --unescape "$2") +DIRECTORY=$(systemd-escape --unescape -- "$2") if [[ -z "$DIRECTORY" ]] || [[ ! -d "$DIRECTORY" ]] ; then echo "Need a directory name in the current users home directory as second argument. Aborting."