Prefer "id -u" over "id -u $(whoami)"

This commit is contained in:
0x1eef 2023-01-16 18:04:07 -03:00
parent db571c70a7
commit dd70ed38a7

View file

@ -41,7 +41,7 @@ has_portzap_access() {
}
user_is_not_root() {
user_id=$(id -u $(whoami))
user_id=$(id -u)
result=$(test $user_id -ne "0")
return $result
}