Fix update prefix

This commit is contained in:
castro-fidel
2020-10-31 17:22:34 +03:00
parent 110c324373
commit 8fc3301faf
4 changed files with 48 additions and 105 deletions

View File

@ -3,8 +3,22 @@
. "$(dirname $(readlink -f "$0"))/runlib"
rm -f "${PORT_WINE_PATH}/"*".log"
rm -f "${PORT_WINE_PATH}/data/"*".lock"
if [ -f "${PORT_WINE_PATH}/data/version" ]; then
rm -f "${PORT_WINE_PATH}/data/version"
fi
rm -f "${config_path}/update_notifier"
if [ -d "${PORT_WINE_PATH}/data/__pycache__" ]; then
rm -fr "${PORT_WINE_PATH}/data/__pycache__"
fi
if [ -d "${PORT_WINE_PATH}/data/pfx/dosdevices" ]; then
rm -fr "${PORT_WINE_PATH}/data/pfx/dosdevices"
fi
if [ ! -d "/home/${USER}/.local/share/applications" ]
then
mkdir -p "/home/${USER}/.local/share/applications"