From 86c73ef1f7a0de7c7271a521af7cdc79345ec4fd Mon Sep 17 00:00:00 2001 From: Noah Slater Date: Sun, 15 Jun 2008 18:33:38 +0000 Subject: improved getopt handling git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@667987 13f79535-47bb-0310-9956-ffa450edef68 --- bootstrap | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bootstrap') diff --git a/bootstrap b/bootstrap index e8e29fda..eebc0b86 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 -- cgit v1.2.3