Skip to content

Commit

Permalink
fix(rollback-helper): make it so GTS does not show up on Aurora for n…
Browse files Browse the repository at this point in the history
…ow (#1872)

Co-authored-by: Jorge O. Castro <[email protected]>
  • Loading branch information
tulilirockz and castrojo authored Nov 8, 2024
1 parent 59770f8 commit 3ac7142
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions system_files/shared/usr/bin/ublue-rollback-helper
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@ function list_tags(){
function rebase_helper(){
base_image="ghcr.io/ublue-os/${IMAGE_NAME}"
echo "Which Tag would you like to rebase to?"
echo "The default selection is gts, stable (weekly builds) and stable-daily (daily builds) are for enthusiasts, and latest is for testers"
choose_target=$(Choose date latest gts stable stable-daily cancel)
CHANNELS=(latest stable stable-daily)
# Aurora currently does not have GTS (02-11-2024)
if [[ "${IMAGE_NAME}" =~ "aurora" ]]; then
echo "The default selection is stable (weekly builds) and stable-daily (daily builds) are for enthusiasts, and latest is for testers"
else
CHANNELS+=(gts)
echo "The default selection is gts, stable (weekly builds) and stable-daily (daily builds) are for enthusiasts, and latest is for testers"
fi
choose_target=$(Choose date "${CHANNELS[@]}" cancel)
if [[ "$choose_target" != "date" && "$choose_target" != "cancel" ]]; then
rebase_target="${base_image}:${choose_target}"
elif [[ "$choose_target" == "date" ]]; then
Expand Down

0 comments on commit 3ac7142

Please sign in to comment.