Skip to content

Commit 5b2cb3d

Browse files
author
Ian Campbell
committed
Fix update-hashes for -dirty suffix.
Previous if you ran `make update-hashes` with a dirty tree then the `-dirty` suffix was sticky and would never be automatically removed (and might even multiply!). Also remove some unnecessary quotes. Signed-off-by: Ian Campbell <ijc@docker.com>
1 parent d455998 commit 5b2cb3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ update-hashes:
3131
$$(make --no-print-directory -C pkg/image-cache show-tag-common) \
3232
$$(make --no-print-directory -C pkg/image-cache show-tag-control-plane) ; do \
3333
image=$${tag%:*} ; \
34-
git grep -E -l "\b$$image:" | xargs --no-run-if-empty sed -i.bak -e "s,$$image:[[:xdigit:]]"'\{40\}'",$$tag,g" ; \
34+
git grep -E -l "\b$$image:" | xargs --no-run-if-empty sed -i.bak -e "s,$$image:[[:xdigit:]]\{40\}\(-dirty\)\?,$$tag,g" ; \
3535
done
3636

3737
.PHONY: clean

0 commit comments

Comments
 (0)