Skip to content

Commit 544e154

Browse files
committed
fixup
1 parent f75fd94 commit 544e154

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ for docker_file in "${docker_files[@]}" ; do
5555
echo "::group:: result of build --check"
5656
echo "$check_result"
5757
echo "::endgroups::"
58-
if [[ -z "$(echo "$check_result" | jq '.warnings // empty')" ]]; then
58+
warnings=$(echo "$check_result" | jq '.warnings')
59+
if [[ "$warnings" == "null" ]]; then
5960
echo "No warnings found in ${docker_file}"
6061
continue
6162
fi

0 commit comments

Comments
 (0)