From 288f016ee53703d1d9948e620400076485e77103 Mon Sep 17 00:00:00 2001 From: Htylol Date: Fri, 7 Mar 2025 21:33:24 +0500 Subject: [PATCH] Hotfix for user.conf --- data_from_portwine/scripts/functions_helper | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index bd6a33b..6bd1468 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -2489,8 +2489,11 @@ pw_port_update () { ;; esac - if [[ ! -f "${PORT_WINE_TMP_PATH}/scripts_ver" ]] ; then + if [[ ! -f "${PORT_WINE_TMP_PATH}/scripts_ver" ]] \ + || [[ ! $BRANCH =~ (devel|master) ]]; then echo "2024" > "${PORT_WINE_TMP_PATH}/scripts_ver" + BRANCH_VERSION_UPDATE="SCRIPTS_STABLE_VERSION" + BRANCH="master" fi URL_ETERFUND="https://gitlab.eterfund.ru/Castro-Fidel/PortWINE/raw/${BRANCH}/data_from_portwine/scripts/var" @@ -6121,6 +6124,10 @@ gui_userconf () { unset SKIP_CHECK_UPDATES export PW_CHANGE_BRANCH="1" export PW_FORCE_UPDATE="1" + else + if [[ $BRANCH == "DEVEL" ]] ; then BRANCH="devel" + elif [[ $BRANCH == "STABLE" ]] ; then BRANCH="master" + fi fi PW_GUI_START="${PW_ADD_SETTINGS_UC[2]}" DOWNLOAD_STEAM_GRID="${PW_ADD_SETTINGS_UC[3]}"