Prefer "id -u" over "id -u $(whoami)"
This commit is contained in:
parent
db571c70a7
commit
dd70ed38a7
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ has_portzap_access() {
|
||||||
}
|
}
|
||||||
|
|
||||||
user_is_not_root() {
|
user_is_not_root() {
|
||||||
user_id=$(id -u $(whoami))
|
user_id=$(id -u)
|
||||||
result=$(test $user_id -ne "0")
|
result=$(test $user_id -ne "0")
|
||||||
return $result
|
return $result
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue