This commit is contained in:
Marc Beninca 2025-07-03 21:45:15 +02:00
parent 72200668a9
commit 2a6bfab4f9
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -49,7 +49,9 @@ rwx_remove() {
} }
rwx_root() { rwx_root() {
if [ "$(id --user)" -eq 0 ]; then local user_id
user_id="$(id --user)"
if [ "${user_id}" -eq 0 ]; then
return 0 return 0
else else
return 1 return 1