escape hyphens?
This commit is contained in:
parent
94036179d4
commit
06e7ad4b27
@ -3,7 +3,7 @@
|
||||
#If no argument is passed, kill the script.
|
||||
[[ -z "$*" || "-" == "$*" || "--" == "$*" ]] && echo "This script requires an argument, use --help for help" && exit
|
||||
|
||||
ARGS="$*" ; echo "${ARGS//--self-update}"
|
||||
ARGS="$*" ; echo "${ARGS//\-\-self\-update}"
|
||||
SCRIPT=$(readlink -f "$0")
|
||||
SCRIPTPATH=$(dirname "$SCRIPT")
|
||||
SCRIPTNAME="$0"
|
||||
|
Loading…
Reference in New Issue
Block a user