Refuse deploy when a module cannot be found.

This commit is contained in:
2017-01-13 14:45:36 +01:00
parent 17db81761c
commit e32f1ed7d6

View File

@@ -63,6 +63,11 @@ echo "Pillar : $PILLAR_DIR"
echo "Attract : $ATTRACT_DIR" echo "Attract : $ATTRACT_DIR"
echo "Flamenco: $FLAMENCO_DIR" echo "Flamenco: $FLAMENCO_DIR"
if [ -z "$PILLAR_DIR" -o -z "$ATTRACT_DIR" -o -z "$FLAMENCO_DIR" ];
then
exit 1
fi
# SSH to cloud to pull all files in # SSH to cloud to pull all files in
function git_pull() { function git_pull() {
PROJECT_NAME="$1" PROJECT_NAME="$1"