Skip to content

Commit

Permalink
Fix line 1: warning: command substitution: ignored null byte in input
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Nov 10, 2024
1 parent e4a01b6 commit 5513035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.buildid
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN steamcmd +login anonymous +app_info_update 1 +app_info_print ${APP_ID} +quit

# Use grep to extract the buildid from the output and save it to buildid.txt
# If buildid.txt is empty, print an error message and exit with a non-zero status to fail the build
RUN grep -zoP '"public"\s*{\s*"buildid"\s*"\K\d+(?=")' output.txt > buildid.txt \
RUN grep -zoP '"public"\s*{\s*"buildid"\s*"\K\d+(?=")' output.txt | tr -d '\0' > buildid.txt \
&& if [ ! -s buildid.txt ]; then echo "buildid.txt is empty" && exit 1; fi

# Print the remote buildid
Expand Down

0 comments on commit 5513035

Please sign in to comment.