2013-08-09 13:13:15 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -eu
|
2014-04-03 02:24:15 +00:00
|
|
|
set -o pipefail
|
2013-08-09 13:13:15 +00:00
|
|
|
|
|
|
|
MIRROR_SOURCE=~/.cache/image-create/pypi/mirror/
|
2014-05-26 02:20:50 +00:00
|
|
|
if [ -d "$MIRROR_SOURCE" ]; then
|
|
|
|
MIRROR_TARGET=$TMP_MOUNT_PATH/tmp/pypi
|
2013-08-09 13:13:15 +00:00
|
|
|
|
2014-05-26 02:20:50 +00:00
|
|
|
sudo mkdir -p $MIRROR_SOURCE $MIRROR_TARGET
|
|
|
|
sudo mount --bind $MIRROR_SOURCE $MIRROR_TARGET
|
|
|
|
fi
|