zenity --error--text"Do not run ${portname} from the superuser!"&>/dev/null
zenity --error--text"Do not run ${portname} from the superuser!"2>/dev/null
exit 1
fi
...
...
@@ -34,7 +34,7 @@ if [ "$script_path" == "/usr/bin" ] && [ -f "${PP_CONFIG_FILE}" ] ; then
rm-f"${PP_CONFIG_FILE}"
fi
fi
if locale | grep"LANG=ru_RU.UTF-8"&>/dev/null
if locale | grep"LANG=ru_RU.UTF-8"2>/dev/null
then PW_SET_LANG="Russian"
else PW_SET_LANG="English"
fi
...
...
@@ -55,7 +55,7 @@ if [ -z "${PW_SET_LANG}" ] ; then
"English")
INFO_TEXT="You run the installer PortWINE ${portname} v. ${port_ver}. \n\nThis is not a commercial product and developed exclusively for the idea and donate. \nAll rights to third-party software belong to their respective owners! \nContinuing the installation of you agree to these terms.";;
inst1=$(zenity --title"Install ${portname}"--text"Select the installation path (update) port,\nor leave it in default."--list--radiolist--width=350 --height=250 \
...
...
@@ -82,19 +82,19 @@ case $PW_SET_LANG in
"${def_path}")
D_PATH="${def_path}";;
"Other path...")
D_PATH="$(zenity --file-selection--directory--title="Select the path..."&>/dev/null)";;
D_PATH="$(zenity --file-selection--directory--title="Select the path..."2>/dev/null)";;