| ... | ... |
@@ -1125,7 +1125,8 @@ function service_check() {
|
| 1125 | 1125 |
fi |
| 1126 | 1126 |
|
| 1127 | 1127 |
# Check if there is any falure flag file under $SERVICE_DIR/$SCREEN_NAME |
| 1128 |
- failures=`ls "$SERVICE_DIR/$SCREEN_NAME"/*.failure 2>/dev/null` |
|
| 1128 |
+ # make this -o errexit safe |
|
| 1129 |
+ failures=`ls "$SERVICE_DIR/$SCREEN_NAME"/*.failure 2>/dev/null || /bin/true` |
|
| 1129 | 1130 |
|
| 1130 | 1131 |
for service in $failures; do |
| 1131 | 1132 |
service=`basename $service` |
| ... | ... |
@@ -605,6 +605,9 @@ function err_trap {
|
| 605 | 605 |
exit $r |
| 606 | 606 |
} |
| 607 | 607 |
|
| 608 |
+ |
|
| 609 |
+set -o errexit |
|
| 610 |
+ |
|
| 608 | 611 |
# Print the commands being run so that we can see the command that triggers |
| 609 | 612 |
# an error. It is also useful for following along as the install occurs. |
| 610 | 613 |
set -o xtrace |