compatible with mate-terminal

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

12
gui

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

Loading…
Cancel
Save