Commit ad1a28a4 authored by Mikhail Tergoev's avatar Mikhail Tergoev

change -eq to = in all test

parent 1dc085cf
...@@ -11,7 +11,7 @@ then ...@@ -11,7 +11,7 @@ then
echo "1" > "${config_path}/update_notifier" echo "1" > "${config_path}/update_notifier"
fi fi
read "update_not" < "${config_path}/update_notifier" read "update_not" < "${config_path}/update_notifier"
if [ "${update_not}" -eq "1" ] if [ "${update_not}" = "1" ]
then then
wget -T 2 --output-document="${config_path}/${portname}_cur_ver" "http://portwine-linux.ru/current_version/${portname}_ver" wget -T 2 --output-document="${config_path}/${portname}_cur_ver" "http://portwine-linux.ru/current_version/${portname}_ver"
sleep 1 sleep 1
...@@ -56,7 +56,7 @@ else ...@@ -56,7 +56,7 @@ else
TRUE "${port_time4}" \ TRUE "${port_time4}" \
FALSE "${port_time5}" \ FALSE "${port_time5}" \
FALSE "${port_time6}" ` FALSE "${port_time6}" `
if [ $? -eq 1 ] if [ $? = 1 ]
then then
echo "1" > "${HOME}/.config/.PortTime" echo "1" > "${HOME}/.config/.PortTime"
else else
......
#!/bin/bash #!/bin/bash
# Author: PortWINE-Linux.ru # Author: PortWINE-Linux.ru
######################################################################## ########################################################################
[ $(id -u) -eq 0 ] && echo "Do not run this script as root!" && zenity --error --text "Do not run this script as root!" && exit 1 [ $(id -u) = 0 ] && echo "Do not run this script as root!" && zenity --error --text "Do not run this script as root!" && exit 1
######################################################################## ########################################################################
sszen() { sszen() {
zenity --progress --title="Settings..." --text="Updating start parameters" --pulsate --auto-close --auto-kill --width=450 zenity --progress --title="Settings..." --text="Updating start parameters" --pulsate --auto-close --auto-kill --width=450
...@@ -41,7 +41,7 @@ if [ ! -f "${config_path}/dxvk_on" ]; then ...@@ -41,7 +41,7 @@ if [ ! -f "${config_path}/dxvk_on" ]; then
FALSE "OpenGL" "${ss_ogl_2}" \ FALSE "OpenGL" "${ss_ogl_2}" \
FALSE "DXVK+HUD" "${ss_ogl_3} + HUD" \ FALSE "DXVK+HUD" "${ss_ogl_3} + HUD" \
TRUE "DXVK" "${ss_ogl_3}" ` TRUE "DXVK" "${ss_ogl_3}" `
if [ $? -eq 1 ];then exit 1; fi if [ $? = 1 ];then exit 1; fi
case $start_settings in case $start_settings in
"OpenGL") "OpenGL")
echo "0" > "${config_path}/dxvk_on" ;; echo "0" > "${config_path}/dxvk_on" ;;
...@@ -120,7 +120,7 @@ else ...@@ -120,7 +120,7 @@ else
export AMD_ATI="$(lspci | grep AMD/ATI)" export AMD_ATI="$(lspci | grep AMD/ATI)"
if [ ! -z "${AMD_ATI}" ]; then if [ ! -z "${AMD_ATI}" ]; then
# export DXVK_CONFIG_FILE="${PORT_WINE_PATH}/data/dxvk_amd.conf" # export DXVK_CONFIG_FILE="${PORT_WINE_PATH}/data/dxvk_amd.conf"
if [ "${PORTWINE_ACO}" -eq "1" ]; then if [ "${PORTWINE_ACO}" = "1" ]; then
export RADV_PERFTEST=aco export RADV_PERFTEST=aco
echo "ACO is enabled" echo "ACO is enabled"
else else
...@@ -130,11 +130,11 @@ else ...@@ -130,11 +130,11 @@ else
fi fi
export DXVK_STATE_CACHE_PATH="${PATH_TO_GAME}" export DXVK_STATE_CACHE_PATH="${PATH_TO_GAME}"
export DXVK_STATE_CACHE=1 export DXVK_STATE_CACHE=1
if [ "${var_dxvk_on}" -eq "0" ]; then if [ "${var_dxvk_on}" = "0" ]; then
export DXVK_STATE_CACHE=0 export DXVK_STATE_CACHE=0
elif [ "${var_dxvk_on}" -eq "1" ]; then elif [ "${var_dxvk_on}" = "1" ]; then
export DXVK_HUD=0 export DXVK_HUD=0
elif [ "${var_dxvk_on}" -eq "2" ]; then elif [ "${var_dxvk_on}" = "2" ]; then
export DXVK_HUD="fps,devinfo,version,frametimes" export DXVK_HUD="fps,devinfo,version,frametimes"
fi fi
export def_pfx="${PORT_WINE_PATH}/data/dist/share/default_pfx/" export def_pfx="${PORT_WINE_PATH}/data/dist/share/default_pfx/"
...@@ -179,7 +179,7 @@ STOP_PORTWINE () ...@@ -179,7 +179,7 @@ STOP_PORTWINE ()
{ {
#WAIT_WINESERVER #WAIT_WINESERVER
ADD_IN_STOP_PORTWINE ADD_IN_STOP_PORTWINE
if [ "$int_xneur" -eq "1" ]; then if [ "$int_xneur" = "1" ]; then
xneur & xneur &
fi fi
#killall -r -s9 winedevice #killall -r -s9 winedevice
......
...@@ -19,7 +19,7 @@ export PORTWINE_ACO=0 ...@@ -19,7 +19,7 @@ export PORTWINE_ACO=0
######################################################################## ########################################################################
ADD_IN_START_PORTWINE () ADD_IN_START_PORTWINE ()
{ {
if [ "${var_dxvk_on}" -eq "0" ] if [ "${var_dxvk_on}" = "0" ]
then ###OPENGL### then ###OPENGL###
export PROTON_USE_WINED3D=1 export PROTON_USE_WINED3D=1
export PW_DXGI_FOR_VKD3D=1 export PW_DXGI_FOR_VKD3D=1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment