mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-09 22:13:32 +00:00
fix: update bazzite-rollback-helper list to capture new image tags (#1503)
Co-authored-by: Aarron Lee <aarron-lee@users.noreply.github.com>
This commit is contained in:
parent
1360fe0247
commit
af4a669165
@ -39,10 +39,10 @@ EOF
|
||||
if [[ "$1" == "list" ]]; then
|
||||
if [ -z "$2" ]; then
|
||||
echo "Listing images for $DEFAULT_BRANCH"
|
||||
skopeo list-tags docker://ghcr.io/ublue-os/bazzite | grep -- "-$DEFAULT_BRANCH-" | sort -rV
|
||||
skopeo list-tags docker://ghcr.io/ublue-os/bazzite | grep -E "\"$DEFAULT_BRANCH-[0-9]+\.[0-9]+|-$DEFAULT_BRANCH-[0-9]+" | sort -rV
|
||||
else
|
||||
echo "Listing images for $2"
|
||||
skopeo list-tags docker://ghcr.io/ublue-os/bazzite | grep -- "-$2-" | sort -rV
|
||||
skopeo list-tags docker://ghcr.io/ublue-os/bazzite | grep -E "\"$2-[0-9]+\.[0-9]+|-$2-[0-9]+" | sort -rV
|
||||
fi
|
||||
|
||||
elif [[ "$1" == "rollback" ]]; then
|
||||
@ -83,4 +83,4 @@ EOF
|
||||
# display the helptext
|
||||
elif [[ "$1" == "-h" || "$1" == "--h" || "$1" == "-help" || "$1" == "--help" || "$1" == "help" || -z "$1" ]]; then
|
||||
echo "$helptext"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user