Own : Fix group for root.

This commit is contained in:
Dmitry Voronin 2024-02-02 14:03:43 +03:00
parent 0b22d1dd7a
commit 0304ca6abb

View file

@ -18,7 +18,7 @@ function own() {
fi
# If not root, default to users group.
[[ "${user}" = 0 ]] || group="100"
[[ "${user}" = 0 ]] && group="0" || group="100"
for file in "${files[@]}"; do
# set ownership.