summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorNoah Slater <nslater@apache.org>2008-06-15 18:33:38 +0000
committerNoah Slater <nslater@apache.org>2008-06-15 18:33:38 +0000
commit86c73ef1f7a0de7c7271a521af7cdc79345ec4fd (patch)
tree5cdabae77f323502c46d1d89c9aad94ea4deb464 /bootstrap
parentfc710b9d8bdd9ea536b8be4193a686370cf086b5 (diff)
downloadcouchdb-86c73ef1f7a0de7c7271a521af7cdc79345ec4fd.tar.gz
improved getopt handling
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@667987 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap5
1 files changed, 4 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index e8e29fda4..eebc0b86d 100755
--- a/bootstrap
+++ b/bootstrap
@@ -253,9 +253,12 @@ EOF
parse_script_option_list () {
# Parse the script option list and take the appropriate action.
- if test ! argument_list=`getopt vhC $@`; then
+ set +e
+ argument_list=`getopt vhC $@`
+ if test ! $? -eq 0; then
display_error
fi
+ set -e
eval set -- "$argument_list"
while [ $# -gt 0 ]; do
case "$1" in