From 223b35c7b2e9a28ecf10f131ae0f3aa50bd28970 Mon Sep 17 00:00:00 2001 From: Mikhail Tergoev Date: Thu, 8 Aug 2024 13:14:53 +0300 Subject: [PATCH] STABLE: Scripts version 2336 --- data_from_portwine/changelog_en | 3 +++ data_from_portwine/changelog_ru | 3 +++ data_from_portwine/scripts/functions_helper | 4 ++-- data_from_portwine/scripts/start.sh | 5 +++++ data_from_portwine/scripts/var | 4 ++-- 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/data_from_portwine/changelog_en b/data_from_portwine/changelog_en index d97ea1d..a979153 100755 --- a/data_from_portwine/changelog_en +++ b/data_from_portwine/changelog_en @@ -2,6 +2,9 @@ You can help us in the development of the project on the website: https://linux- ---------------------------------------- Changelog: +###Scripts version 2336### / stable /Date: 08.08.2024 / Download update size: 4 megabytes +* improved verification of downloaded files + ###Scripts version 2335### / stable /Date: 07.08.2024 / Download update size: 4 megabytes * cumulative update to the stable version of PortProton scripts diff --git a/data_from_portwine/changelog_ru b/data_from_portwine/changelog_ru index 64eef06..04c6d98 100755 --- a/data_from_portwine/changelog_ru +++ b/data_from_portwine/changelog_ru @@ -2,6 +2,9 @@ ----------------------------------------- История изменений: +###Scripts version 2336### / stable / Дата: 08.08.2024 / Размер скачиваемого обновления: 4 мегабайта +* улучшение работы верификации скачанных файлов + ###Scripts version 2335### / stable / Дата: 07.08.2024 / Размер скачиваемого обновления: 185 мегабайт * кумулятивное обновление стабильной версии скриптов PortProton diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 3d8b342..9221ac7 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -272,7 +272,7 @@ check_process () { export -f check_process try_check_sha256sum () { - SHA256SUM_EXT=$(curl -L --silent "${1//.tar*/}.sha256sum" | awk '{print $1}') + SHA256SUM_EXT=$(curl --silent -L "${1//.tar*/}.sha256sum" | awk '{print $1}') if [[ ${#SHA256SUM_EXT} == 64 ]] ; then SHA256SUM_INT=$(sha256sum "$dest" | awk '{print $1}') if [[ "$SHA256SUM_EXT" == "$SHA256SUM_INT" ]] ; then @@ -366,7 +366,7 @@ try_download () { fi fi print_ok "File downloaded successfully: $filename from ${FIRST_URL[0]}" - if try_check_sha256sum ${SECOND_URL[@]} ; then + if try_check_sha256sum ${FIRST_URL[@]} ; then return 0 else try_remove_file "$dest" diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh index 7b17835..b7e09f8 100755 --- a/data_from_portwine/scripts/start.sh +++ b/data_from_portwine/scripts/start.sh @@ -466,6 +466,11 @@ use: [--repair] [--reinstall] [--autoinstall] export PW_DEBUG="set -x" /usr/bin/env bash -c ${pw_full_command_line[*]} 2>&1 | tee "$PORT_WINE_PATH/scripts-debug.log" & exit 0 ;; + '--server-file-access' ) + echo + curl -s --list-only "https://cloud.linux-gaming.ru/log/$(date +20%y_%m)_file_access.log" | sort -r + echo + exit 0 ;; esac ### GUI ### diff --git a/data_from_portwine/scripts/var b/data_from_portwine/scripts/var index 08b0479..4442aa4 100755 --- a/data_from_portwine/scripts/var +++ b/data_from_portwine/scripts/var @@ -1,7 +1,7 @@ #!/usr/bin/env bash #Author: Castro-Fidel (linux-gaming.ru) -#SCRIPTS_NEXT_VERSION=2335 -#SCRIPTS_STABLE_VERSION=2335 +#SCRIPTS_NEXT_VERSION=2336 +#SCRIPTS_STABLE_VERSION=2336 ######################################################################## export LANGUAGES_LIST="ru es" export PW_VKBASALT="0"