From 3b51b90ffd66b1092210b8a3c887d636703a00a3 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 8 Jan 2017 00:45:54 +0100 Subject: [PATCH] Fix help when no command provided. --- chocpkg/commands.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chocpkg/commands.sh b/chocpkg/commands.sh index adbdaec..4354239 100755 --- a/chocpkg/commands.sh +++ b/chocpkg/commands.sh @@ -217,7 +217,11 @@ END } chocpkg::commands::command() { - local command="${1:-NONE}"; shift + local command=NONE + if [ $# -gt 0 ]; then + command="$1" + shift + fi case "$command" in packages) chocpkg::commands::packages