X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=mail-setup;h=abd863370b1b04440f6df6ed6a32d3f704d0f344;hb=e81ac02c3c177cdfb148395bd7fdba328361869d;hp=d3d1056e3d336bf6746591ff58f5caab6d977e7d;hpb=ae10fa08bb841b99b0df8e827735bef08c05f3ca;p=distro-setup diff --git a/mail-setup b/mail-setup index d3d1056..abd8633 100755 --- a/mail-setup +++ b/mail-setup @@ -287,7 +287,8 @@ i() { # install file local base="${dest##*/}" local dir="${dest%/*}" if [[ $dir != "$base" ]]; then - mkdir -p ${dest%/*} + # dest has a directory component + mkdir -p "$dir" fi ir=false # i result tmpdir=$(mktemp -d)