Skip to content

Commit 3910af3

Browse files
Update remove_images.sh
1 parent 4018c24 commit 3910af3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

remove_images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DIGESTS=$(doctl registry repository lm $1 --format Digest,UpdatedAt,Tags | tail -n +2 | sort -rk2 | grep -v -E "$4" | awk '{print $1}' | tail -n +$(($2+1)))
1+
DIGESTS=$(doctl registry repository lm $1 --format Digest,UpdatedAt,Tags | tail -n +2 | sort -rk2 | grep -v -E "$3" | awk '{print $1}' | tail -n +$(($2+1)))
22
for DIGEST in $DIGESTS; do
33
doctl registry repository delete-manifest $1 $DIGEST --force
44
done

0 commit comments

Comments
 (0)