Check for .stackenv

* Skip sourcing .stackenv if it doesn't exist
* Remove .stackenv at end

Change-Id: Icc2e8e4ea6fada5f9d0b906fedacdbe2c1b3b320
This commit is contained in:
Dean Troyer 2013-06-04 12:51:54 -05:00
parent cc8f47dca5
commit 58f9cf761a

View File

@ -19,7 +19,9 @@ source $TOP_DIR/functions
source $TOP_DIR/stackrc
# Get the variables that are set in stack.sh
source $TOP_DIR/.stackenv
if [[ -r $TOP_DIR/.stackenv ]]; then
source $TOP_DIR/.stackenv
fi
# Determine what system we are running on. This provides ``os_VENDOR``,
# ``os_RELEASE``, ``os_UPDATE``, ``os_PACKAGE``, ``os_CODENAME``
@ -88,4 +90,4 @@ cleanup_database
# FIXED_IP_ADDR in br100
# Clean up files
#rm -f .stackenv
rm -f $TOP_DIR/.stackenv