From dd70ed38a78ea7e59bf0fdd2a4825866c36b5c0b Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Mon, 16 Jan 2023 18:04:07 -0300 Subject: [PATCH] Prefer "id -u" over "id -u $(whoami)" --- bin/portzap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/portzap b/bin/portzap index 43c4975..079028d 100755 --- a/bin/portzap +++ b/bin/portzap @@ -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 }