summaryrefslogtreecommitdiffstats
path: root/src/getopt.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-07-03 02:16:04 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-07-03 02:17:23 (EDT)
commit35242ef0a438664930cdcfb3789da8395aa50f8f (patch)
tree1ab6b97865fec94202be323517ab9605e8405748 /src/getopt.sh
parent66c3162f152c9befa0b2ee032300b526a3240d23 (diff)
cmd: Fix non-"static" global variable
Broken by commit dcf9e96aa3a3530b6f0e6afba8dc0c102b89dd51.
Diffstat (limited to 'src/getopt.sh')
-rw-r--r--src/getopt.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/getopt.sh b/src/getopt.sh
index 0e63ead..12f3807 100644
--- a/src/getopt.sh
+++ b/src/getopt.sh
@@ -24,12 +24,12 @@ get_options()
local prefix=
local opt=
- if [ "x${running_cmd_clean}" = 'x' ]; then
+ if [ "x${cmd_running_clean}" = 'x' ]; then
optstring="${OPTSTRING}"
prefix='opt_'
else
- eval "optstring=\"\${cmd_${running_cmd_clean}_optstring}\""
- prefix="cmd_${running_cmd_clean}_opt_"
+ eval "optstring=\"\${cmd_${cmd_running_clean}_optstring}\""
+ prefix="cmd_${cmd_running_clean}_opt_"
fi
unset OPTARG