summaryrefslogtreecommitdiffstats
path: root/lib/cmd.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-05-26 18:07:14 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-05-26 18:07:14 (EDT)
commit2cd968e982bb9942e6d044270a42de88d8d01b67 (patch)
tree4751e5a9802ce2d0b319e5a988ce723db8611660 /lib/cmd.sh
parent78a64f4f12a28be389fdc935cdf7dcfddf386c35 (diff)
parent27abaab4e6861d60f1316349395eeff57b65c964 (diff)
Merge branch 'feature/installer-integration'
Diffstat (limited to 'lib/cmd.sh')
-rw-r--r--lib/cmd.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/cmd.sh b/lib/cmd.sh
index fb2dad4..208e2fa 100644
--- a/lib/cmd.sh
+++ b/lib/cmd.sh
@@ -27,6 +27,7 @@ use locale
CMDS='@cmds@'
running_cmd=
+running_cmd_clean=
load_cmds()
{
@@ -118,8 +119,10 @@ run_cmd()
tr '[A-Z]' '[a-z]' | tr -C '[a-z0-9_]' '_')"
if is_cmd "${cmd}"; then
running_cmd="${cmd}"
+ running_cmd_clean="${cmd_clean}"
"cmd_${cmd_clean}_main" "${@}"
running_cmd=''
+ running_cmd_clean=''
else
error 1 "$(get_msg 'cmd_not_found')" "${cmd}"
fi