diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-13 22:45:10 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-13 22:46:32 (EDT) |
commit | b8eb07a865a4489414676783199cb12e70588371 (patch) | |
tree | 722f6ad086d7f1f1b859eee640531615d122151f /src | |
parent | 04e2c00d4fbed0559e36a6787c81c15f6860e873 (diff) |
src/cmd.sh: Prefix "static" var with "_"
Diffstat (limited to 'src')
-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 } |