From b8eb07a865a4489414676783199cb12e70588371 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 13 Apr 2019 22:45:10 -0400 Subject: src/cmd.sh: Prefix "static" var with "_" --- diff --git a/src/cmd.sh b/src/cmd.sh index e7af8e3..4f945d5 100644 --- a/src/cmd.sh +++ b/src/cmd.sh @@ -20,14 +20,14 @@ # along with the ProteanOS Archive Manager. If not, see # . -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 } -- cgit v0.9.1