Skip to content

Commit

Permalink
Merge pull request #792 from boerngen-schmidt/patch-1
Browse files Browse the repository at this point in the history
Reliable user id detection
  • Loading branch information
klightspeed committed May 31, 2017
2 parents c37813f + 1c1fb70 commit b6ced46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/arkmanager
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ arkstUserCfgFile='.arkmanager.cfg'

doUpgradeTools() {
local sudo=sudo
if [ "$UID" == 0 -o "$steamcmd_user" == "--me" ]; then
if [ $(id -u) == 0 -o "$steamcmd_user" == "--me" ]; then
sudo=
fi

Expand All @@ -43,7 +43,7 @@ doUpgradeTools() {

doUpgradeToolsFromCommit(){
local sudo=sudo
if [ "$UID" == 0 -o "$steamcmd_user" == "--me" ]; then
if [ $(id -u) == 0 -o "$steamcmd_user" == "--me" ]; then
sudo=
fi

Expand Down Expand Up @@ -138,7 +138,7 @@ doUpgradeToolsFromRelease(){

doUninstallTools() {
local sudo=sudo
if [ "$UID" == 0 -o "$steamcmd_user" == "--me" ]; then
if [ $(id -u) == 0 -o "$steamcmd_user" == "--me" ]; then
sudo=
fi

Expand Down

0 comments on commit b6ced46

Please sign in to comment.