Skip to content

Commit

Permalink
Allow command expansion for timeout handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Dewey authored and tdewey-rpi committed Feb 5, 2025
1 parent 366c8c8 commit fd6be41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/rpi-sb-provisioner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ provisioner_log() {
timeout_nonfatal() {
command="$*"
set +e
[ -z "${DEMO_MODE_ONLY}" ] && timeout 120 "${command}"
[ -z "${DEMO_MODE_ONLY}" ] && timeout 120 ${command}


command_exit_status=$?
Expand All @@ -109,7 +109,7 @@ timeout_nonfatal() {
timeout_fatal() {
command="$*"
set +e
[ -z "${DEMO_MODE_ONLY}" ] && timeout 120 "${command}"
[ -z "${DEMO_MODE_ONLY}" ] && timeout 120 ${command}
command_exit_status=$?
if [ ${command_exit_status} -eq 124 ]; then
echo "${PROVISIONER_ABORTED}" >> /var/log/rpi-sb-provisioner/"${TARGET_DEVICE_SERIAL}"/progress
Expand Down

0 comments on commit fd6be41

Please sign in to comment.