From 4d778cee0cdc7777919ac3b0bd0c1cc98ff30504 Mon Sep 17 00:00:00 2001 From: Mattias Hansson Date: Fri, 4 Dec 2020 14:53:18 +0100 Subject: [PATCH] entrypoint.sh: Default value to BUILD_FLAGS Export BUILD_FLAGS to an empty value if the action is called without an explicit BUILD_FLAGS value. --- entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 8853dda..59399df 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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=""