summaryrefslogtreecommitdiff
path: root/tools/mkcatdirs
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mkcatdirs')
-rwxr-xr-xtools/mkcatdirs10
1 files changed, 2 insertions, 8 deletions
diff --git a/tools/mkcatdirs b/tools/mkcatdirs
index b7dbe13d..596b2a49 100755
--- a/tools/mkcatdirs
+++ b/tools/mkcatdirs
@@ -108,14 +108,8 @@ do
then
echo " "
# shellcheck disable=SC2086
- echo "mkinstalldirs $catdirs" &&
- mkinstalldirs $catdirs &&
- echo "chown $owner $catdirs" &&
- chown "$owner" $catdirs &&
- echo "chgrp $group $catdirs" &&
- chgrp "$group" $catdirs &&
- echo "chmod $mode $catdirs" &&
- chmod "$mode" $catdirs ||
+ echo "install -d -o $owner -g $group -m $mode $catdirs" &&
+ install -d -o "$owner" -g "$group" -m "$mode" $catdirs ||
exit $?
fi