Skip to content

Commit 508d8cd

Browse files
committed
Fix an escaping error.
Without this one-character change, we're checking the exit code of the invoking shell, not the one running the command.
1 parent f6286d3 commit 508d8cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provisioning/aws/launch_worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_user_data(self):
7171
set +e
7272
echo "Beginning job $JOB_NAME ..." >> "$LOG"
7373
$MAIN &>> "$LOG"
74-
JOB_EXIT_CODE=$?
74+
JOB_EXIT_CODE=\$?
7575
echo "Finished job $JOB_NAME" >> "$LOG"
7676
set -e
7777
echo "'$MAIN' exited with code \$JOB_EXIT_CODE" >> "$LOG"

0 commit comments

Comments
 (0)