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