Skip to content

Commit

Permalink
fix: limit the number of days in rollback-helper (ublue-os#1836)
Browse files Browse the repository at this point in the history
  • Loading branch information
befanyt authored and karman011 committed Oct 28, 2024
1 parent 9f0002e commit 2e2d19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system_files/shared/usr/bin/ublue-rollback-helper
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ IMAGE_TAG=$(jq -r '."image-tag"' < $IMAGE_INFO)
FEDORA_VERSION=$(jq -r '."fedora-version"' < $IMAGE_INFO)

function list_tags(){
skopeo list-tags docker://ghcr.io/ublue-os/"${IMAGE_NAME}" | grep -E --color=never -- "$FEDORA_VERSION-([0-9]+)" | sort -rV
skopeo list-tags docker://ghcr.io/ublue-os/"${IMAGE_NAME}" | grep -E --color=never -- "$FEDORA_VERSION-([0-9]+)" | sort -rV | head -n 31
}

function rebase_helper(){
Expand Down

0 comments on commit 2e2d19f

Please sign in to comment.