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 f0be34f commit 9a13867Copy full SHA for 9a13867
prune_images
@@ -44,9 +44,13 @@ for board_path in "${board_paths[@]}"; do
44
continue
45
fi
46
47
- if [[ ${FLAGS_keep_latest} -eq ${FLAGS_TRUE} &&
48
- "${board_path}/latest" -ef "${image_path}" ]]; then
49
- continue
+ if [[ ${FLAGS_keep_latest} -eq ${FLAGS_TRUE} ]]; then
+ # keep anything that is or newer than the latest
+ if [[ "${board_path}/latest" -ef "${image_path}" || \
50
+ "${board_path}/latest/version.txt" -ot \
51
+ "${image_path}/version.txt" ]]; then
52
+ continue
53
+ fi
54
55
56
# best effort attempt to clean up old mounts
0 commit comments