summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-10-12 14:49:11 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-10-12 14:49:11 (EDT)
commit6b6ef334901b74677a484624bde426c425795e61 (patch)
treec6a3ea794ce2d676e6789a6c68bef14244d5cfa9 /src
parent04eff6b0b42f46088c3e6da0f04d34b366f2ac34 (diff)
OPTSTRING: New global variable.
Diffstat (limited to 'src')
-rw-r--r--src/pro-archman.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pro-archman.sh b/src/pro-archman.sh
index 2e0332e..dd8fe2e 100644
--- a/src/pro-archman.sh
+++ b/src/pro-archman.sh
@@ -29,6 +29,7 @@ PKGLIBCMDDIR='@@PKGLIBCMDDIR@@'
PKGLIBCMD='@@PKGLIBCMD@@'
LF='
'
+OPTSTRING='hVb:'
# Global variables
loading_cmd=
@@ -123,7 +124,7 @@ get_options()
{
local opt=
- while getopts 'b:hV' opt; do
+ while getopts "${OPTSTRING}" opt; do
case "${opt}" in
'b')
opt_base_dir="$(cd "${OPTARG}" && pwd)"