user_id
This commit is contained in:
parent
72200668a9
commit
2a6bfab4f9
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,9 @@ rwx_remove() {
|
|||
}
|
||||
|
||||
rwx_root() {
|
||||
if [ "$(id --user)" -eq 0 ]; then
|
||||
local user_id
|
||||
user_id="$(id --user)"
|
||||
if [ "${user_id}" -eq 0 ]; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue