diff --git a/loolwsd-systemplate-setup b/loolwsd-systemplate-setup index 1bd4bd66e00b5..8fb235527bedc 100755 --- a/loolwsd-systemplate-setup +++ b/loolwsd-systemplate-setup @@ -9,7 +9,7 @@ INSTDIR=$2 test -d "$INSTDIR" || { echo "No such directory: $INSTDIR"; exit 1; } -mkdir $CHROOT || exit 1 +mkdir -p $CHROOT || exit 1 CHROOT=`cd $CHROOT && /bin/pwd` INSTDIR=`cd $INSTDIR && /bin/pwd`