Skip to content

Commit

Permalink
feat(just): Add descriptions to rebase-helper (#1514)
Browse files Browse the repository at this point in the history
Co-authored-by: m2 <[email protected]>
  • Loading branch information
castrojo and m2Giles authored Jul 17, 2024
1 parent 58074fa commit c8c2d15
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit c8c2d15

Please sign in to comment.