Own : Fix users group detection.
This commit is contained in:
parent
1219ef791b
commit
09a28c47e7
|
@ -18,7 +18,7 @@ function own() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If not root, default to users group.
|
# If not root, default to users group.
|
||||||
_is_root || group="100"
|
[[ "${user}" = 0 ]] || group="100"
|
||||||
|
|
||||||
for file in "${files[@]}"; do
|
for file in "${files[@]}"; do
|
||||||
# set ownership.
|
# set ownership.
|
||||||
|
|
Reference in a new issue