Skip to content

Commit 689d2b2

Browse files
committed
Enhance error managment from inner scripts
1 parent 14cc71d commit 689d2b2

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

ubuntu1404/builder.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
# specific language governing permissions and limitations
1717
# under the License.
1818

19-
set -e
20-
2119
# Adjust user and group provided by host
2220
adjust_owner() {
2321
# if both set then change the owner
@@ -51,5 +49,5 @@ if [ $? -eq 0 ]; then
5149
else
5250
adjust_owner
5351
echo "Packaging DEB failed"
54-
exit 1
52+
exit $?
5553
fi

ubuntu1604/builder.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
# specific language governing permissions and limitations
1717
# under the License.
1818

19-
set -e
20-
2119
# Adjust user and group provided by host
2220
adjust_owner() {
2321
# if both set then change the owner
@@ -51,5 +49,5 @@ if [ $? -eq 0 ]; then
5149
else
5250
adjust_owner
5351
echo "Packaging DEB failed"
54-
exit 1
52+
exit $?
5553
fi

0 commit comments

Comments
 (0)