mmkdir: ensure dir permissions for toplevel directory too (using umask)

Fix a quoting bug on the side.
This commit is contained in:
Leah Neukirchen 2018-12-18 18:16:04 +01:00
parent c2e0dcec3c
commit ab80765c24

4
mmkdir
View File

@ -1,9 +1,11 @@
#!/bin/sh #!/bin/sh
# mmkdir DIRS... - create new maildirs # mmkdir DIRS... - create new maildirs
umask 077
r=0 r=0
for dir; do for dir; do
mkdir -p -m 0700 $dir/cur $dir/new $dir/tmp || r=1 mkdir -p "$dir"/cur "$dir"/new "$dir"/tmp || r=1
done done
exit $r exit $r