aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-07-24 10:22:26 +0000
committermerakor <cem@ckyln.com>2020-07-24 10:22:26 +0000
commit68f492eeae576754d6d18d0a2fa45bfa547b1f3c (patch)
tree24d590820cbd13591624b2f62c4477078f13023e
parenta5742ec0d46f60fcbeec141744a2e35a9e5dd6d5 (diff)
downloadcpt-68f492eeae576754d6d18d0a2fa45bfa547b1f3c.tar.gz
cpt: fix argument usage
FossilOrigin-Name: 04c848fd6e2d974fdbee473d0e6518f7e8a9a89d9f8f1102626876d179f63ca3
-rwxr-xr-xcpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpt b/cpt
index d29083d..63bab84 100755
--- a/cpt
+++ b/cpt
@@ -25,8 +25,8 @@ case "$arg" in
--version|-v) version ;;
*)
- util=$(SEARCH_PATH=$PATH pkg_find "cpt-$1"* "" -x 2>/dev/null) ||
- die "'cpt $action' is not a valid command"
+ util=$(SEARCH_PATH=$PATH pkg_find "cpt-$arg"* "" -x 2>/dev/null) ||
+ die "'cpt $arg' is not a valid command"
"$util" "$@"
;;