We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91b8d77 commit 780e570Copy full SHA for 780e570
script.sh
@@ -52,7 +52,7 @@ docker_files=$(git ls-files --exclude='*Dockerfile*' --ignored --cached)
52
for docker_file in "${docker_files[@]}" ; do
53
export DOCKER_FILE_PATH=${docker_file}
54
check_result=$(docker build -f "${docker_file}" --call=check,format=json . || true)
55
- if [[ -z "$(echo "$check_result" | jq '.warnings // empty')" ]]; then
+ if [[ "$(echo "$check_result" | jq '.warnings // empty')" ]]; then
56
echo "No warnings found in ${docker_file}"
57
continue
58
fi
0 commit comments