mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-11 18:48:26 +00:00
Accept a serverbasedir option in lieu of $HOME
This commit is contained in:
parent
fd722330c8
commit
f0ceb94427
@ -214,7 +214,15 @@ if [ -f "${HOME}/${arkstUserCfgFile}" ]; then
|
||||
source "${HOME}/${arkstUserCfgFile}"
|
||||
fi
|
||||
|
||||
cd "$HOME"
|
||||
if [ -n "${serverbasedir}" && -d "${serverbasedir}" ]; then
|
||||
cd "${serverbasedir}"
|
||||
elif [ -d "${HOME}" ]; then
|
||||
cd "${HOME}"
|
||||
elif [ -d "${steamcmdroot}" ]; then
|
||||
cd "${steamcmdroot}"
|
||||
elif [[ ! -d "${PWD}" || ! -r "${PWD}" || ! -x "${PWD}" ]]; then
|
||||
cd /
|
||||
fi
|
||||
|
||||
lsof=lsof
|
||||
if [ -x /usr/sbin/lsof ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user