Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanjli committed May 30, 2024
1 parent 6b68aaa commit 2d4e345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pinspawn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ if [ ! -z "$boot_run_service" ]; then
# Check the return code of the shell script
# Note: this is not needed in unbooted containers because errors there are propagated to the
# caller of the script
if [ ! "$(sudo cat "$boot_tmp_result" > /dev/null)" ]; then
if ! sudo cat "$boot_tmp_result" > /dev/null; then
echo "Error: $boot_run_service did not store a result indicating success/failure!"
exit 1
elif [ "$(sudo cat "$boot_tmp_result")" != "0" ]; then
Expand Down

0 comments on commit 2d4e345

Please sign in to comment.