summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pro-archman.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pro-archman.sh b/src/pro-archman.sh
index 62d9461..b4524d2 100644
--- a/src/pro-archman.sh
+++ b/src/pro-archman.sh
@@ -119,7 +119,9 @@ get_options()
unset OPTARG
while getopts "${OPTSTRING}" opt; do
- eval "opt_${opt}=\"\${OPTARG:-true}\""
+ if [ "x${opt}" != 'x?' ]; then
+ eval "opt_${opt}=\"\${OPTARG:-true}\""
+ fi
unset OPTARG
done