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

Commit c24a0c6

Browse files
committed
Return failed execution status properly
1 parent f7b2333 commit c24a0c6

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

applyPatches.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function applyPatches {
3232
echo " Please review above details and finish the apply then"
3333
echo " save the changes with rebuildPatches.sh"
3434
cd "$ORIG_PWD"
35-
exit $?
35+
exit 1
3636
else
3737
echo " Patches applied cleanly to $target"
3838
fi

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
if !(./applyPatches.sh); then
4-
exit $?
4+
exit 1
55
else
66
./compile.sh
77
fi

compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function compile {
1212
if !(MAVEN_OPTS=-Xmx512M mvn clean install); then
1313
echo " $1 failed to compile"
1414
cd "$ORIG_PWD"
15-
exit $?
15+
exit 1
1616
else
1717
echo " $1 compiled"
1818
echo " JAR location: $target/target/"

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function deploy {
1212
if !(MAVEN_OPTS=-Xmx512M mvn deploy); then
1313
echo " $1 failed to deploy"
1414
cd "$ORIG_PWD"
15-
exit $?
15+
exit 1
1616
else
1717
echo " $1 deployed"
1818
fi

init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ -d build ]; then
1515
if [ -d build ]; then
1616
echo "Unable to remove build directory"
1717
cd "$ORIG_PWD"
18-
exit $?
18+
exit 1
1919
fi
2020
fi
2121

0 commit comments

Comments
 (0)