mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
Include /run in search path
This commit is contained in:
parent
7830d93e85
commit
586c154bd4
1 changed files with 2 additions and 2 deletions
4
dzgui.sh
4
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=3.0.0-testing
|
version=3.1.0-rc.1
|
||||||
|
|
||||||
aid=221100
|
aid=221100
|
||||||
game="dayz"
|
game="dayz"
|
||||||
|
@ -245,7 +245,7 @@ guess_path(){
|
||||||
steam_path="$clean_path"
|
steam_path="$clean_path"
|
||||||
else
|
else
|
||||||
echo "# Searching for alternate DayZ path. This may take some time."
|
echo "# Searching for alternate DayZ path. This may take some time."
|
||||||
path=$(find / -type d \( -path "/proc" -o -path "*/timeshift" -o -path "/tmp" -o -path "/usr" -o -path "/boot" -o -path "/proc" -o -path "/root" -o -path "/run" -o -path "/sys" -o -path "/etc" -o -path "/var" -o -path "/run" -o -path "/lost+found" \) -prune -o -regex ".*/steamapps/common/DayZ$" -print -quit 2>/dev/null)
|
path=$(find / -type d \( -path "/proc" -o -path "*/timeshift" -o -path "/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 -regex ".*/steamapps/common/DayZ$" -print -quit 2>/dev/null)
|
||||||
clean_path=$(echo -e "$path" | awk -F"/steamapps" '{print $1}')
|
clean_path=$(echo -e "$path" | awk -F"/steamapps" '{print $1}')
|
||||||
steam_path="$clean_path"
|
steam_path="$clean_path"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue