Skip to content

Commit

Permalink
bashism fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Angxddeep committed Oct 29, 2024
1 parent d7ef940 commit fdc9608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tabs/system-setup/fedora/fedora-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ update() {
printf "%b\n" "${YELLOW}Do you want to update to Fedora version $next_version? (y/n): ${RC}"
read -r response

if [[ "$response" =~ ^[Yy]$ ]]; then
if [ "$response" =~ ^[Yy]$ ]; then
printf "%b\n" "${CYAN}Preparing to update to Fedora version $next_version...${RC}"

# Install the system upgrade plugin
Expand All @@ -35,7 +35,7 @@ update() {
printf "%b\n" "${YELLOW}Do you want to reboot now to apply the upgrade? (y/n): ${RC}"
read -r reboot_response

if [[ "$reboot_response" =~ ^[Yy]$ ]]; then
if [ "$reboot_response" =~ ^[Yy]$ ]; then
printf "%b\n" "${GREEN}Rebooting to apply the upgrade...${RC}"
"$ESCALATION_TOOL" "$PACKAGER" system-upgrade reboot
else
Expand Down

0 comments on commit fdc9608

Please sign in to comment.