Make the MIRROR_TARGET directory if it didn't exist

Just adding an element shouldn't make a disk image build crash, even if
we're not using the element for its intended purpose.

Change-Id: I2ec91ce4975b3b0deee7c85bb223f854c694553f
This commit is contained in:
Derek Higgins 2014-02-06 14:09:32 +00:00
parent 22cc3900a5
commit c2ccfa6504

View File

@ -5,5 +5,5 @@ set -eu
MIRROR_SOURCE=~/.cache/image-create/pypi/mirror/
MIRROR_TARGET=$TMP_MOUNT_PATH/tmp/pypi
sudo mkdir -p $MIRROR_TARGET
sudo mkdir -p $MIRROR_SOURCE $MIRROR_TARGET
sudo mount --bind $MIRROR_SOURCE $TMP_MOUNT_PATH/tmp/pypi