ud-replicate: sgran pointed out that if all we care about ignoring is EEXIST
[mirror/userdir-ldap.git] / ud-replicate
index d2a065f..a9e294b 100755 (executable)
@@ -81,7 +81,7 @@ if [ -e ${HOST}/ssh-keys.tar.gz ]; then
   export TMPDIR='/tmp/'
   tempdir=$(mktemp -d)
   tar -C "$tempdir" -xf ${HOST}/ssh-keys.tar.gz
-  [ -d userkeys ] || mkdir userkeys
+  mkdir -p userkeys
   chmod 755 $tempdir
   rsync -a --delete-after $tempdir/ userkeys/
 fi