diff options
author | Noah Slater <nslater@apache.org> | 2008-06-15 18:33:38 +0000 |
---|---|---|
committer | Noah Slater <nslater@apache.org> | 2008-06-15 18:33:38 +0000 |
commit | 86c73ef1f7a0de7c7271a521af7cdc79345ec4fd (patch) | |
tree | 5cdabae77f323502c46d1d89c9aad94ea4deb464 /bootstrap | |
parent | fc710b9d8bdd9ea536b8be4193a686370cf086b5 (diff) | |
download | couchdb-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-x | bootstrap | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |