Skip to content

Commit

Permalink
fix exit
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeguzis committed Jun 25, 2024
1 parent a2758c6 commit 6073879
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utilities/update-software/launch-update-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ export LD_PRELOAD=""
if [[ -f "/usr/bin/xterm" ]]; then
xterm -fg white -bg black \
-maximized -fa 'Monospace' -fs 24 \
-e '$SHELL -c "${HOME}/.local/bin/update-software.sh && exit; $SHELL"'
-e '$SHELL -c "${HOME}/.local/bin/update-software.sh; exit; $SHELL"'

elif [[ -f "/usr/bin/konsole" ]]; then
konsole -e '$SHELL -c "${HOME}/.local/bin/update-software.sh && exit; $SHELL"'
konsole -e '$SHELL -c "${HOME}/.local/bin/update-software.sh; exit; $SHELL"'

elif [[ -f "/usr/bin/gnome-terminal" ]]; then
gnome-terminal -e '$SHELL -c "${HOME}/.local/bin/update-software.sh && exit; $SHELL"'
gnome-terminal -e '$SHELL -c "${HOME}/.local/bin/update-software.sh; exit; $SHELL"'

elif [[ -f "/usr/bin/kgx" ]]; then
kgx -e '$SHELL -c "${HOME}/.local/bin/update-software.sh && exit; $SHELL"'
kgx -e '$SHELL -c "${HOME}/.local/bin/update-software.sh; exit; $SHELL"'

else
echo "[ERROR] Unknown terminal in use"
Expand Down

0 comments on commit 6073879

Please sign in to comment.