From 5685ffd3773d987aca36b6f6be3e2bab88598a92 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Tue, 29 Aug 2017 03:05:34 -0400 Subject: Fix err message in main() $1 goes out of scope (kind of) should use $cmd to reference the command name when displaying it in the error message. --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index d34f962..86fcaff 100644 --- a/main.sh +++ b/main.sh @@ -37,7 +37,7 @@ function main elif [[ "$cmd" == "tag" ]]; then systr_repo_tag "$@" else - echo "Fatal: $1 not recognized" + echo "Fatal: $cmd not recognized" fi } -- cgit v1.2.3