Make sourcing of config.sh idempotent

This commit is contained in:
Adam Harrison committed 2015-04-22 14:54:33 +01:00
1 parent 849bd52096
commit f3619367a2
1 file changed
+7
+7
View File
@@ -2,6 +2,13 @@
set -e
# Protect against being sourced multiple times to prevent
# overwriting assert.sh global state
if ! [ -z "$SOURCED_CONFIG_SH" ]; then
return
fi
SOURCED_CONFIG_SH=true
# these ought to match what is in Vagrantfile
N_MACHINES=${N_MACHINES:-2}
IP_PREFIX=${IP_PREFIX:-192.168.48}