broke build into three parts - config, build, and install
[Evergreen.git] / config.sh
index a6fab55..971c5cb 100755 (executable)
--- a/config.sh
+++ b/config.sh
@@ -26,6 +26,16 @@ DEFAULT_CONFIG_FILE="install.conf.default";
 
 function buildConfig {
 
+       if [ -f "$CONFIG_FILE" ]; then
+               echo "";
+               echo "Using existing config file \"$CONFIG_FILE\""; 
+               echo "To generate a new config, remove \"$CONFIG_FILE\"";
+               echo "";
+               sleep 3;        
+               exit 0;
+       fi
+
+
        if [ -f "$DEFAULT_CONFIG_FILE" ]; then
                source "$DEFAULT_CONFIG_FILE";
        fi;