From 4563d5641f3e2b3c2f767ce61bf34ae9dccdc709 Mon Sep 17 00:00:00 2001 From: Mikhail Tergoev Date: Wed, 1 Oct 2025 13:57:49 +0300 Subject: [PATCH] disabled print_license_agreement to enumerate scripts --- winehelper | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/winehelper b/winehelper index 0e67121..686e44f 100755 --- a/winehelper +++ b/winehelper @@ -1423,12 +1423,6 @@ wine_run_install () { } run_autoinstall () { - if [[ $WH_USE_GUI == "1" ]] \ - && [[ $(ps -o command= -p "$PPID" | awk '{print $2}') =~ "$DATA_PATH/winehelper_gui.py" ]] - then print_ok "Соглашения приняты из графического интерфейса." - else print_license_agreement - fi - if [[ $1 == "--clear-pfx" ]] ; then export CLEAR_PREFIX="1" shift @@ -1484,6 +1478,11 @@ run_autoinstall () { echo list_install_scripts "$WH_MANUALINSTALL_DIR" "Список программ с возможностью установки из существующего дистрибутива:" elif [[ "$INSTALL_SCRIPT" != "0" ]] ; then + if [[ $WH_USE_GUI == "1" ]] \ + && [[ $(ps -o command= -p "$PPID" | awk '{print $2}') =~ "$DATA_PATH/winehelper_gui.py" ]] + then print_ok "Соглашения приняты из графического интерфейса." + else print_license_agreement + fi source "$INSTALL_SCRIPT" "$@" print_info "Завершена установка $INSTALL_SCRIPT_NAME" else