fix systemd-escape hyphen usage

pull/310/head
Michael Bartlett 2020-03-03 13:34:27 -07:00
parent ffb744a59b
commit 7b42e2da5b
1 changed files with 1 additions and 1 deletions

View File

@ -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."