From 3ac7142b82096e439cb577aecca515d226b51752 Mon Sep 17 00:00:00 2001 From: Tulip Blossom Date: Fri, 8 Nov 2024 10:18:56 -0300 Subject: [PATCH] fix(rollback-helper): make it so GTS does not show up on Aurora for now (#1872) Co-authored-by: Jorge O. Castro --- system_files/shared/usr/bin/ublue-rollback-helper | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/system_files/shared/usr/bin/ublue-rollback-helper b/system_files/shared/usr/bin/ublue-rollback-helper index a6ad8424757..1b5232464e2 100755 --- a/system_files/shared/usr/bin/ublue-rollback-helper +++ b/system_files/shared/usr/bin/ublue-rollback-helper @@ -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