Skip to content

Commit

Permalink
entrypoint.sh: Default value to BUILD_FLAGS
Browse files Browse the repository at this point in the history
Export BUILD_FLAGS to an empty value if the action is called without an
explicit BUILD_FLAGS value.
  • Loading branch information
orzen committed Dec 4, 2020
1 parent fd68d4b commit 4d778ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -eux

if [ -z "${BUILD_FLAGS+x}" ]; then
echo "::warning file=entrypoint.sh,line=6,col=1::BUILD_FLAGS not set"
export BUILD_FLAGS=""
fi

if [ -z "${CMD_PATH+x}" ]; then
echo "::warning file=entrypoint.sh,line=6,col=1::CMD_PATH not set"
export CMD_PATH=""
Expand Down

0 comments on commit 4d778ce

Please sign in to comment.