couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nsla...@apache.org
Subject svn commit: r667987 - /incubator/couchdb/trunk/bootstrap
Date Sun, 15 Jun 2008 18:33:38 GMT
Author: nslater
Date: Sun Jun 15 11:33:38 2008
New Revision: 667987

URL: http://svn.apache.org/viewvc?rev=667987&view=rev
Log:
improved getopt handling

Modified:
    incubator/couchdb/trunk/bootstrap

Modified: incubator/couchdb/trunk/bootstrap
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/bootstrap?rev=667987&r1=667986&r2=667987&view=diff
==============================================================================
--- incubator/couchdb/trunk/bootstrap (original)
+++ incubator/couchdb/trunk/bootstrap Sun Jun 15 11:33:38 2008
@@ -253,9 +253,12 @@
 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



Mime
View raw message