Merge "enable -o errexit"
This commit is contained in:
@@ -1125,7 +1125,8 @@ function service_check() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if there is any falure flag file under $SERVICE_DIR/$SCREEN_NAME
|
# Check if there is any falure flag file under $SERVICE_DIR/$SCREEN_NAME
|
||||||
failures=`ls "$SERVICE_DIR/$SCREEN_NAME"/*.failure 2>/dev/null`
|
# make this -o errexit safe
|
||||||
|
failures=`ls "$SERVICE_DIR/$SCREEN_NAME"/*.failure 2>/dev/null || /bin/true`
|
||||||
|
|
||||||
for service in $failures; do
|
for service in $failures; do
|
||||||
service=`basename $service`
|
service=`basename $service`
|
||||||
|
3
stack.sh
3
stack.sh
@@ -605,6 +605,9 @@ function err_trap {
|
|||||||
exit $r
|
exit $r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
|
||||||
# Print the commands being run so that we can see the command that triggers
|
# Print the commands being run so that we can see the command that triggers
|
||||||
# an error. It is also useful for following along as the install occurs.
|
# an error. It is also useful for following along as the install occurs.
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
Reference in New Issue
Block a user