Skip to content

Commit 780e570

Browse files
committed
fix
1 parent 91b8d77 commit 780e570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ docker_files=$(git ls-files --exclude='*Dockerfile*' --ignored --cached)
5252
for docker_file in "${docker_files[@]}" ; do
5353
export DOCKER_FILE_PATH=${docker_file}
5454
check_result=$(docker build -f "${docker_file}" --call=check,format=json . || true)
55-
if [[ -z "$(echo "$check_result" | jq '.warnings // empty')" ]]; then
55+
if [[ "$(echo "$check_result" | jq '.warnings // empty')" ]]; then
5656
echo "No warnings found in ${docker_file}"
5757
continue
5858
fi

0 commit comments

Comments
 (0)