Skip to content

Commit 31a33f6

Browse files
author
Vitaly Korolev
committed
fix syntax
1 parent 6a78139 commit 31a33f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ image-scan:
237237
@echo "=====Scan dependent Docker images in charts/values.yaml" $(if $(saveOutput), | tee -a dep-image-scan.txt,)
238238
set -e; \
239239
scanned_images_tracker_file="$$(mktemp)"; \
240+
trap 'rm -f "$$scanned_images_tracker_file"' EXIT; \
240241
scan_image() { \
241242
img="$$1"; \
242243
src_file="$$2"; \
@@ -289,5 +290,5 @@ image-scan:
289290
scan_image "$$haproxy_image:$$haproxy_tag" "charts/values.yaml";
290291
@# Remove trailing comma from helm_image.list if present
291292
@if [ -f helm_image.list ]; then \
292-
sed -i '' -e 's/,\s*$$//' helm_image.list; \
293+
sed -i'' -e 's/,\s*$$//' helm_image.list; \
293294
fi

0 commit comments

Comments
 (0)