[39797] contrib/select/select.sh

raimue at macports.org raimue at macports.org
Thu Sep 4 18:03:56 PDT 2008


Revision: 39797
          http://trac.macports.org/changeset/39797
Author:   raimue at macports.org
Date:     2008-09-04 18:03:56 -0700 (Thu, 04 Sep 2008)
Log Message:
-----------
contrib/select/select.sh:
Fix error count; was always reporting '0 errors'

Modified Paths:
--------------
    contrib/select/select.sh

Modified: contrib/select/select.sh
===================================================================
--- contrib/select/select.sh	2008-09-05 00:45:51 UTC (rev 39796)
+++ contrib/select/select.sh	2008-09-05 01:03:56 UTC (rev 39797)
@@ -193,8 +193,9 @@
 
 # execute selection
 select_version ${1}
-if [ 0 != ${?} ]; then
-	echo "there were ${?} errors selecting version \"${version}\"!"
+error_count=${?}
+if [ 0 != ${error_count} ]; then
+	echo "there were ${error_count} errors selecting version \"${version}\"!"
 	exit 5
 fi
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080904/16f8a3fe/attachment.html 


More information about the macports-changes mailing list