From 7f084063dab978e3a60fd93c415822c4cec07f02 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 25 May 2015 00:52:34 -0400 Subject: run_cmd(): Set new running_cmd_clean variable --- (limited to 'lib') 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 -- cgit v0.9.1