diff options
-rw-r--r-- | src/cmd.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -20,14 +20,14 @@ # along with the ProteanOS Archive Manager. If not, see # <http://www.gnu.org/licenses/>. -cmds=' ' +_cmds=' ' register_cmd() { local cmd="${1}" shift 1 - cmds="${cmds}${cmd} " + _cmds="${_cmds}${cmd} " return 0 } @@ -70,7 +70,7 @@ print_cmd_summaries() local summary= padding="$(printf '%24s' '')" - for cmd in ${cmds}; do + for cmd in ${_cmds}; do if [ ${#cmd} -gt 20 ]; then printf ' %s\n%24s' "${cmd}" '' else @@ -106,7 +106,7 @@ is_cmd() local cmd="${1}" shift 1 - case "${cmds}" in *" ${cmd} "*) return 0;; esac + case "${_cmds}" in *" ${cmd} "*) return 0;; esac return 1 } |