Own : Fix users group detection.

This commit is contained in:
Dmitry Voronin 2024-01-31 23:10:05 +03:00
parent 1219ef791b
commit 09a28c47e7

View file

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