We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0a209a commit 2634fc3Copy full SHA for 2634fc3
tools/scan-images.sh
@@ -167,7 +167,7 @@ scan_image() {
167
168
# Run scan against image or SBOM, format output. If no results, delete files.
169
echo "Scanning $imagename for vulnerabilities"
170
- if $scan_command >& "$scan.log"; then
+ if ! $scan_command >& "$scan.log"; then
171
rm -f "$scan"
172
echo "${image}" >> image-scan-output/clean-images.txt
173
elif [ ! -f "$scan" ]; then
0 commit comments