hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1227225 - /hadoop/common/trunk/hadoop-dist/pom.xml
Date Wed, 04 Jan 2012 16:56:02 GMT
Author: tucu
Date: Wed Jan  4 16:56:01 2012
New Revision: 1227225

URL: http://svn.apache.org/viewvc?rev=1227225&view=rev
Log:
HADOOP-7948. Shell scripts created by hadoop-dist/pom.xml to build tar do not properly propagate
failure. (cim_michajlomatijkiw via tucu)

Modified:
    hadoop/common/trunk/hadoop-dist/pom.xml

Modified: hadoop/common/trunk/hadoop-dist/pom.xml
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-dist/pom.xml?rev=1227225&r1=1227224&r2=1227225&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-dist/pom.xml (original)
+++ hadoop/common/trunk/hadoop-dist/pom.xml Wed Jan  4 16:56:01 2012
@@ -98,11 +98,12 @@
                       run() {
                         echo "\$ ${@}"
                         "${@}"
-                        if [ $? != 0 ]; then
+                        res=$?
+                        if [ $res != 0 ]; then
                           echo
                           echo "Failed!"
                           echo
-                          exit $?
+                          exit $res
                         fi
                       }
 
@@ -139,11 +140,12 @@
                       run() {
                         echo "\$ ${@}"
                         "${@}"
-                        if [ $? != 0 ]; then
+                        res=$?
+                        if [ $res != 0 ]; then
                           echo
                           echo "Failed!"
                           echo
-                          exit $?
+                          exit $res
                         fi
                       }
 



Mime
View raw message