summaryrefslogtreecommitdiffstats
path: root/main.sh
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-08-29 03:05:34 -0400
committerMalf Furious <m@lfurio.us>2017-08-29 03:05:34 -0400
commit5685ffd3773d987aca36b6f6be3e2bab88598a92 (patch)
tree60eaa2595931713578e6b07977834378f2139246 /main.sh
parent52cf1a3c3e8a0830816ed3d8b3648e112d0d97c2 (diff)
downloadsystrunk-5685ffd3773d987aca36b6f6be3e2bab88598a92.tar.gz
systrunk-5685ffd3773d987aca36b6f6be3e2bab88598a92.zip
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.
Diffstat (limited to 'main.sh')
-rw-r--r--main.sh2
1 files changed, 1 insertions, 1 deletions
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
}