From 6b6ef334901b74677a484624bde426c425795e61 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 12 Oct 2013 14:49:11 -0400 Subject: OPTSTRING: New global variable. --- (limited to 'src') 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)" -- cgit v0.9.1