Skip to content
This repository has been archived by the owner on Aug 31, 2019. It is now read-only.

Commit

Permalink
Return failed execution status properly
Browse files Browse the repository at this point in the history
  • Loading branch information
tonybruess committed Sep 2, 2014
1 parent f7b2333 commit c24a0c6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion applyPatches.sh
Expand Up @@ -32,7 +32,7 @@ function applyPatches {
echo " Please review above details and finish the apply then"
echo " save the changes with rebuildPatches.sh"
cd "$ORIG_PWD"
exit $?
exit 1
else
echo " Patches applied cleanly to $target"
fi
Expand Down
2 changes: 1 addition & 1 deletion build.sh
@@ -1,7 +1,7 @@
#!/bin/bash

if !(./applyPatches.sh); then
exit $?
exit 1
else
./compile.sh
fi
2 changes: 1 addition & 1 deletion compile.sh
Expand Up @@ -12,7 +12,7 @@ function compile {
if !(MAVEN_OPTS=-Xmx512M mvn clean install); then
echo " $1 failed to compile"
cd "$ORIG_PWD"
exit $?
exit 1
else
echo " $1 compiled"
echo " JAR location: $target/target/"
Expand Down
2 changes: 1 addition & 1 deletion deploy.sh
Expand Up @@ -12,7 +12,7 @@ function deploy {
if !(MAVEN_OPTS=-Xmx512M mvn deploy); then
echo " $1 failed to deploy"
cd "$ORIG_PWD"
exit $?
exit 1
else
echo " $1 deployed"
fi
Expand Down
2 changes: 1 addition & 1 deletion init.sh
Expand Up @@ -15,7 +15,7 @@ if [ -d build ]; then
if [ -d build ]; then
echo "Unable to remove build directory"
cd "$ORIG_PWD"
exit $?
exit 1
fi
fi

Expand Down

0 comments on commit c24a0c6

Please sign in to comment.