compatible with mate-terminal

pull/61/head
Botspot 5 years ago
parent 8586e23eec
commit 5a153d21da

12
gui

@ -27,26 +27,34 @@ fi
install() { install() {
x-terminal-emulator --title="Installing $app" -e ' x-terminal-emulator --title="Installing $app" -e '
bash -c '\''
PATH="'"$PATH"'"
if "'"${DIRECTORY}/manage"'" install "'"$app"'" ; then if "'"${DIRECTORY}/manage"'" install "'"$app"'" ; then
echo -e "\nClosing in 30 seconds." echo -e "\nClosing in 30 seconds."
sleep 30 sleep 30
else else
echo -e "\nClose this window to exit." echo -e "\nClose this window to exit."
read enter #technically you could press Enter to exit. read enter #technically you could press Enter to exit.
fi' fi
'\''
'
sleep 1 sleep 1
while ps -C manage &>/dev/null;do sleep 0.1; done while ps -C manage &>/dev/null;do sleep 0.1; done
} }
uninstall() { uninstall() {
x-terminal-emulator --title="Uninstalling $app" -e ' x-terminal-emulator --title="Uninstalling $app" -e '
bash -c '\''
PATH="'"$PATH"'"
if "'"${DIRECTORY}/manage"'" uninstall "'"$app"'" ; then if "'"${DIRECTORY}/manage"'" uninstall "'"$app"'" ; then
echo -e "\nClosing in 30 seconds." echo -e "\nClosing in 30 seconds."
sleep 30 sleep 30
else else
echo -e "\nClose this window to exit." echo -e "\nClose this window to exit."
read enter #technically you could press Enter to exit. read enter #technically you could press Enter to exit.
fi' fi
'\''
'
sleep 1 sleep 1
while ps -C manage &>/dev/null;do sleep 0.1; done while ps -C manage &>/dev/null;do sleep 0.1; done
} }

Loading…
Cancel
Save