Skip to content

Commit fd6be41

Browse files
Tom Deweytdewey-rpi
authored andcommitted
Allow command expansion for timeout handling
1 parent 366c8c8 commit fd6be41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service/rpi-sb-provisioner.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ provisioner_log() {
8989
timeout_nonfatal() {
9090
command="$*"
9191
set +e
92-
[ -z "${DEMO_MODE_ONLY}" ] && timeout 120 "${command}"
92+
[ -z "${DEMO_MODE_ONLY}" ] && timeout 120 ${command}
9393

9494

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

0 commit comments

Comments
 (0)