Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(just): Add descriptions to rebase-helper #1514

Merged
merged 2 commits into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions system_files/shared/usr/bin/ublue-rollback-helper
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ 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 is for enthusiasts, and latest is for testers"
choose_target=$(Choose date latest gts stable cancel)
if [[ "$choose_target" != "date" && "$choose_target" != "cancel" ]]; then
rebase_target="${base_image}:${choose_target}"
elif [[ "$choose_target" == "date" ]]; then
# shellcheck disable=SC2207
echo "Warning: This will pin you to a specific version, do not forget to rebase back to a channel to resume receiving updates."
valid_tags=( $(list_tags | sed 's/\"//g' | sed 's/,//g'))
target_tag=$(Choose cancel "${valid_tags[@]}")
if grep -Eq "$FEDORA_VERSION-([0-9]+)" <<< "${target_tag}"; then
Expand Down
Loading