mirror of
https://github.com/aclist/dztui.git
synced 2025-01-01 15:12:05 +01:00
Hotfix for /run path
This commit is contained in:
parent
e0733c7d48
commit
9ffa148534
1 changed files with 3 additions and 4 deletions
7
dzgui.sh
7
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=3.1.0-rc.19
|
version=3.1.0-rc.20
|
||||||
|
|
||||||
aid=221100
|
aid=221100
|
||||||
game="dayz"
|
game="dayz"
|
||||||
|
@ -1020,7 +1020,7 @@ find_default_path(){
|
||||||
discover(){
|
discover(){
|
||||||
echo "# Searching for Steam"
|
echo "# Searching for Steam"
|
||||||
default_steam_path=$(find / -type d \( -path "/proc" -o -path "*/timeshift" -o -path \
|
default_steam_path=$(find / -type d \( -path "/proc" -o -path "*/timeshift" -o -path \
|
||||||
"/tmp" -o -path "/usr" -o -path "/boot" -o -path "/run" -o -path "/proc" -o -path "/root" \
|
"/tmp" -o -path "/usr" -o -path "/boot" -o -path "/proc" -o -path "/root" \
|
||||||
-o -path "/sys" -o -path "/etc" -o -path "/var" -o -path "/lost+found" \) -prune \
|
-o -path "/sys" -o -path "/etc" -o -path "/var" -o -path "/lost+found" \) -prune \
|
||||||
-o -regex ".*/Steam/ubuntu12_32$" -print -quit 2>/dev/null | sed 's@/ubuntu12_32@@')
|
-o -regex ".*/Steam/ubuntu12_32$" -print -quit 2>/dev/null | sed 's@/ubuntu12_32@@')
|
||||||
echo "100"
|
echo "100"
|
||||||
|
@ -1498,7 +1498,6 @@ check_ping(){
|
||||||
}
|
}
|
||||||
create_array(){
|
create_array(){
|
||||||
rows=()
|
rows=()
|
||||||
list=$(cat $tmp)
|
|
||||||
#TODO: improve error handling for null values
|
#TODO: improve error handling for null values
|
||||||
lc=1
|
lc=1
|
||||||
while read line; do
|
while read line; do
|
||||||
|
@ -1525,7 +1524,7 @@ create_array(){
|
||||||
declare -g -a rows=("${rows[@]}" "$name" "$ip" "$players" "$time" "$stat" "$id" "$ping")
|
declare -g -a rows=("${rows[@]}" "$name" "$ip" "$players" "$time" "$stat" "$id" "$ping")
|
||||||
fi
|
fi
|
||||||
let lc++
|
let lc++
|
||||||
done <<< "$list"
|
done < "$tmp"
|
||||||
|
|
||||||
for i in "${rows[@]}"; do echo -e "$i"; done > $tmp
|
for i in "${rows[@]}"; do echo -e "$i"; done > $tmp
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue