diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-05-25 00:52:34 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-05-25 00:52:34 (EDT) |
commit | 7f084063dab978e3a60fd93c415822c4cec07f02 (patch) | |
tree | 83113472ea70124c9ddf1986ff072779abc44a9a | |
parent | a65c79664f476441e7115ffd8a81e5241ac7d55d (diff) |
run_cmd(): Set new running_cmd_clean variable
-rw-r--r-- | lib/cmd.sh | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |