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