Error fallback if terminal was not installed successfully (#2611)

This commit is contained in:
Jon Kinney
2025-10-20 08:55:28 -05:00
committed by GitHub
parent 730cba2e2a
commit c4f93787d6

View File

@@ -8,12 +8,14 @@ fi
package="$1" package="$1"
# Install package # Install package
omarchy-pkg-add $package if omarchy-pkg-add $package; then
# Set as default terminal
echo "Setting $package as new default terminal..."
sed -i "/export TERMINAL=/ c\export TERMINAL=$package" ~/.config/uwsm/default
# Set as default terminal # Restart is needed for new default to take effect
echo "Setting $package as new default terminal..." echo
sed -i "/export TERMINAL=/ c\export TERMINAL=$package" ~/.config/uwsm/default gum confirm "Restart to use new terminal?" && systemctl reboot --no-wall
else
# Restart is needed for new default to take effect echo "Failed to install $package"
echo fi
gum confirm "Restart to use new terminal?" && systemctl reboot --no-wall