summaryrefslogtreecommitdiffstats
path: root/src/cmd.sh
diff options
context:
space:
mode:
authorPatrick 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)
commitb8eb07a865a4489414676783199cb12e70588371 (patch)
tree722f6ad086d7f1f1b859eee640531615d122151f /src/cmd.sh
parent04e2c00d4fbed0559e36a6787c81c15f6860e873 (diff)
src/cmd.sh: Prefix "static" var with "_"
Diffstat (limited to 'src/cmd.sh')
-rw-r--r--src/cmd.sh8
1 files changed, 4 insertions, 4 deletions
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
# <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
}