mirror of
https://github.com/aclist/dztui.git
synced 2025-01-01 15:12:05 +01:00
fix: not breaking out of loop after setting steam path (#65)
This commit is contained in:
parent
f28257925f
commit
22e96873d9
1 changed files with 4 additions and 3 deletions
7
dzgui.sh
7
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=3.2.14
|
version=3.2.15
|
||||||
|
|
||||||
aid=221100
|
aid=221100
|
||||||
game="dayz"
|
game="dayz"
|
||||||
|
@ -230,7 +230,7 @@ freedesktop_dirs(){
|
||||||
find_library_folder(){
|
find_library_folder(){
|
||||||
echo "ENTERED: ${FUNCNAME[0]}" >> /tmp/debug.log
|
echo "ENTERED: ${FUNCNAME[0]}" >> /tmp/debug.log
|
||||||
echo "RECEIVED ARG: $1" >> /tmp/debug.log
|
echo "RECEIVED ARG: $1" >> /tmp/debug.log
|
||||||
steam_path=$(python3 "$helpers_path/vdf2json.py" -i "$1/steamapps/libraryfolders.vdf" | jq -r '.libraryfolders[]|select(.apps|has("221100")).path')
|
steam_path="$(python3 "$helpers_path/vdf2json.py" -i "$1/steamapps/libraryfolders.vdf" | jq -r '.libraryfolders[]|select(.apps|has("221100")).path')"
|
||||||
echo "STEAM PATH RESOLVED TO: $steam_path" >> /tmp/debug.log
|
echo "STEAM PATH RESOLVED TO: $steam_path" >> /tmp/debug.log
|
||||||
}
|
}
|
||||||
file_picker(){
|
file_picker(){
|
||||||
|
@ -268,6 +268,7 @@ create_config(){
|
||||||
else
|
else
|
||||||
while true; do
|
while true; do
|
||||||
echo "STEAMSAFEZENITY: $steamsafe_zenity" >> /tmp/debug.log
|
echo "STEAMSAFEZENITY: $steamsafe_zenity" >> /tmp/debug.log
|
||||||
|
[[ -n $steam_path ]] && break
|
||||||
find_default_path
|
find_default_path
|
||||||
find_library_folder "$default_steam_path"
|
find_library_folder "$default_steam_path"
|
||||||
if [[ -z $steam_path ]]; then
|
if [[ -z $steam_path ]]; then
|
||||||
|
@ -1046,7 +1047,7 @@ console_dl(){
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
find_default_path(){
|
find_default_path(){
|
||||||
echo "ENTER: ${FUNCNAME[0]}" >> $config/debug.log
|
echo "ENTER: ${FUNCNAME[0]}" >> /tmp/debug.log
|
||||||
discover(){
|
discover(){
|
||||||
echo "# Searching for Steam"
|
echo "# Searching for Steam"
|
||||||
default_steam_path=$(find / -type d \( -path "/proc" -o -path "*/timeshift" -o -path "$HOME/.var" -o -path \
|
default_steam_path=$(find / -type d \( -path "/proc" -o -path "*/timeshift" -o -path "$HOME/.var" -o -path \
|
||||||
|
|
Loading…
Reference in a new issue