Skip to content

Commit f7ce890

Browse files
committed
refactor: Improve bash if condition
Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com
1 parent dc5fb17 commit f7ce890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-container-image/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ runs:
5555
set -euo pipefail
5656
5757
# Validate that the build arguments input doesn't contain any whitespaces
58-
if [[ $BUILD_ARGUMENTS = *" "* ]]; then
58+
if echo "$BUILD_ARGUMENTS" | grep '[[:space:]]'; then
5959
echo "Build arguments MUST not contain any whitespace."
6060
exit 1
6161
fi

0 commit comments

Comments
 (0)