mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Error fallback if terminal was not installed successfully (#2611)
This commit is contained in:
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user