mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-13 03:18:28 +00:00
Don't use realpath if path is already absolute
This commit is contained in:
parent
d6bbe867ea
commit
566161d5a4
@ -43,7 +43,10 @@ arkstGithubRepo="${arkstGithubRepoOverride:-arkmanager/ark-server-tools}"
|
||||
arkstGlobalCfgFile="${arkstGlobalCfgFileOverride:-/etc/arkmanager/arkmanager.cfg}"
|
||||
arkstUserCfgFile="${arkstUserCfgFileOverride:-.arkmanager.cfg}"
|
||||
|
||||
arkstScriptPath="$(realpath "$0")"
|
||||
arkstScriptPath="${0}"
|
||||
if [[ "${arkstScriptPath}" != /* ]]; then
|
||||
arkstScriptPath="$(realpath "$0")"
|
||||
fi
|
||||
|
||||
doUpgradeTools() {
|
||||
if [ -n "$arkstUsePkgManager" ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user