You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by tu...@apache.org on 2012/01/04 17:56:02 UTC
svn commit: r1227225 - /hadoop/common/trunk/hadoop-dist/pom.xml
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
}