From 8b913bcda1a4c818a9c5661aa39fdb9c1f803a40 Mon Sep 17 00:00:00 2001 From: Botspot Date: Mon, 2 Nov 2020 09:42:31 -0600 Subject: [PATCH] compatibility with xfce4-terminal --- updater | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/updater b/updater index a244390..3b9927a 100755 --- a/updater +++ b/updater @@ -160,6 +160,7 @@ echo "Button: ${button}" x-terminal-emulator --title='Updating apps...' -e ' +bash -c '\'' DIRECTORY="'"$DIRECTORY"'" mainupdate="'"$mainupdate"'" updatable="'"$updatable"'" @@ -183,6 +184,7 @@ do done IFS="$PREIFS" echo -e "\e[92mAll updates complete. Closing in 10 seconds.\e[39m" +'\'' ' #.git folder @@ -191,7 +193,10 @@ gio trash "${DIRECTORY}/.git" 2>/dev/null cp -rf "${DIRECTORY}/update/pi-apps/.git" "${DIRECTORY}/.git" || error "Failed to copy new .git!" sleep 1 -while ps -C manage >/dev/null;do sleep 0.1; done +while ps -C manage &>/dev/null +do + sleep 0.1 +done yad --text="Please close all instances of Pi-Apps to apply the update." \ --text-align=center --center --title='Pi-Apps update complete' --window-icon="${DIRECTORY}/icons/logo.png" \