From e6440aff91e167d3062d5c502041af485e4c5f63 Mon Sep 17 00:00:00 2001 From: castro-fidel Date: Sat, 15 Jan 2022 18:59:32 +0300 Subject: [PATCH] update portproton installation script --- data_from_portwine/scripts/start.sh | 1 + portwine_install_script/portproton | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh index b4fb399..f26a429 100755 --- a/data_from_portwine/scripts/start.sh +++ b/data_from_portwine/scripts/start.sh @@ -323,6 +323,7 @@ else if gui_question "${port_del2}" ; then rm -fr "${PORT_WINE_PATH}" rm -fr "${PORT_WINE_TMP_PATH}" + rm -fr "${HOME}/PortWINE" rm -f `grep -il PortProton "${HOME}/.local/share/applications"/*` update-desktop-database -q "${HOME}/.local/share/applications" fi diff --git a/portwine_install_script/portproton b/portwine_install_script/portproton index d78722c..24237f4 100755 --- a/portwine_install_script/portproton +++ b/portwine_install_script/portproton @@ -159,7 +159,7 @@ try_download_scripts () { try_download_scripts fi } -if [ "${PW_SILENT_INSTALL}" = "1" ] ; then +if [ "${PW_SILENT_INSTALL}" = "1" ] & [ "$(dirname "`readlink -f "$0"`")" != "/usr/bin" ] ; then try_download_scripts else try_download_scripts | progress_bar