diff options
author | Leah Neukirchen <leah@vuxu.org> | 2018-12-18 18:16:04 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2018-12-18 18:16:04 +0100 |
commit | ab80765c2424f2445e2ba1b0740f266cbe218850 (patch) | |
tree | 77550b2296ef280c9f81b369a77c7750230430fa /mmkdir | |
parent | c2e0dcec3c1df0775e169046d61689abb975350a (diff) | |
download | mblaze-ab80765c2424f2445e2ba1b0740f266cbe218850.tar.gz mblaze-ab80765c2424f2445e2ba1b0740f266cbe218850.tar.xz mblaze-ab80765c2424f2445e2ba1b0740f266cbe218850.zip |
mmkdir: ensure dir permissions for toplevel directory too (using umask)
Fix a quoting bug on the side.
Diffstat (limited to 'mmkdir')
-rwxr-xr-x | mmkdir | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mmkdir b/mmkdir index 26d01ff..28feee6 100755 --- a/mmkdir +++ b/mmkdir @@ -1,9 +1,11 @@ #!/bin/sh # mmkdir DIRS... - create new maildirs +umask 077 + r=0 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 exit $r |