Commit e168487d authored by Vincent Driessen's avatar Vincent Driessen

Fix: quote arg to typeset

parent aaec7b3b
...@@ -87,7 +87,7 @@ main() { ...@@ -87,7 +87,7 @@ main() {
if [ "$1" != "" ] && ! echo "$1" | grep -q "^-"; then if [ "$1" != "" ] && ! echo "$1" | grep -q "^-"; then
SUBACTION="$1"; shift SUBACTION="$1"; shift
fi fi
if ! typeset -f cmd_$SUBACTION 2>&1 >/dev/null; then if ! typeset -f "cmd_$SUBACTION" 2>&1 >/dev/null; then
warn "Unknown subcommand: '$1'" warn "Unknown subcommand: '$1'"
usage usage
exit 1 exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment