added update meter
This commit is contained in:
@ -2697,8 +2697,6 @@ pw_port_update () {
|
||||
return 0
|
||||
fi
|
||||
|
||||
tmp_next_ver=$(grep "SCRIPTS_NEXT_VERSION" "${PORT_WINE_TMP_PATH}/curent_var_ver" | awk -F "=" '{print $2}')
|
||||
tmp_stab_ver=$(grep "SCRIPTS_STABLE_VERSION" "${PORT_WINE_TMP_PATH}/curent_var_ver" | awk -F "=" '{print $2}')
|
||||
scripts_current_ver=$(grep "$BRANCH_VERSION_UPDATE" "${PORT_WINE_TMP_PATH}/curent_var_ver" | awk -F "=" '{print $2}')
|
||||
if [[ ! -f "${PORT_WINE_TMP_PATH}/update_remind_later" ]] ; then
|
||||
echo "$scripts_current_ver" > "${PORT_WINE_TMP_PATH}/update_remind_later"
|
||||
@ -2770,7 +2768,7 @@ pw_port_update () {
|
||||
try_remove_dir "${PORT_WINE_TMP_PATH}/$PW_NAME_ARCHIVE/"
|
||||
echo "${scripts_current_ver}" > "${PORT_WINE_TMP_PATH}/scripts_ver"
|
||||
unset SKIP_CHECK_UPDATES
|
||||
[[ "$tmp_next_ver" == "$tmp_stab_ver" ]] && echo "Stable update."
|
||||
curl -X GET "http://cloud.linux-gaming.ru:8081/api/download/${scripts_current_ver}" &>/dev/null
|
||||
echo "Restarting PP after update..."
|
||||
restart_pp
|
||||
fi
|
||||
|
Reference in New Issue
Block a user