From d0d86469194e7dedad9e4212b192794b2b1decf9 Mon Sep 17 00:00:00 2001 From: castro-fidel Date: Sat, 15 Jan 2022 19:19:45 +0300 Subject: [PATCH] update portproton installation script 3 --- portwine_install_script/portproton | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/portwine_install_script/portproton b/portwine_install_script/portproton index cee8ac28..b45d6536 100755 --- a/portwine_install_script/portproton +++ b/portwine_install_script/portproton @@ -106,19 +106,16 @@ else if [ $? -eq 1 ] ; then echo "error" && exit 1 ; fi fi ######################################################################## -if [ "${PW_SILENT_INSTALL}" != "1" ] ; then - case $PW_SET_LANG in - "Russian") - progress_bar() { - zenity --progress --title="Установка..." --text="Настройка ${portname}" --pulsate --auto-close --auto-kill --width=450 > /dev/null 2>&1 - } ;; - "English") - progress_bar() { - zenity --progress --title="Install..." --text="Install ${portname}" --pulsate --auto-close --auto-kill --width=450 > /dev/null 2>&1 - } ;; - esac - if [ $? -eq 1 ] ; then echo "error" && exit 1 ; fi -fi +case $PW_SET_LANG in + "Russian") + progress_bar() { + zenity --progress --title="Установка..." --text="Настройка ${portname}" --pulsate --auto-close --auto-kill --width=450 > /dev/null 2>&1 + } ;; + "English") + progress_bar() { + zenity --progress --title="Install..." --text="Install ${portname}" --pulsate --auto-close --auto-kill --width=450 > /dev/null 2>&1 + } ;; +esac ######################################################################## export PORT_WINE_PATH="${D_PATH}" if [ ! -d "${PORT_WINE_PATH}" ] ; then