Don't fail if CACHE_DIR has a missing component

Also, don't invoke weave if it's not running.
This commit is contained in:
Peter Bourgon
2015-07-13 13:40:46 +02:00
parent dd59810196
commit ac29fba7bc
2 changed files with 11 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ set -eux
CACHE_DIR=$HOME/docker/
rebuild() {
rm $CACHE_DIR/*
rm $CACHE_DIR/* || true
make scope_ui_build.tar
mkdir -p $CACHE_DIR
mv scope_ui_build.tar $CACHE_DIR/image-$CIRCLE_SHA1