nice new tool to show version of feisty meow
[feisty_meow.git] / scripts / site_avenger / sitepush.sh
index 7d0a76a2c94b4f6dddda029becb591e97c5de2ad..79156ea2ac76bb02e1ea1c28e2c0748321a4d552 100644 (file)
@@ -6,10 +6,6 @@
 # checks the chosen site into the online git repository.
 
 export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )"  # obtain the script's working directory.
-source "$WORKDIR/shared_site_mgr.sh"
-
-# get our defaults.
-source "$WORKDIR/site_avenger.config"
 
 ############################
 
@@ -19,6 +15,8 @@ source "$WORKDIR/site_avenger.config"
 app_dirname="$1"; shift
 repo_name="$1"; shift
 
+source "$WORKDIR/shared_site_mgr.sh"
+
 sep
 
 check_application_dir "$APPLICATION_DIR"
@@ -44,7 +42,7 @@ sep
 
 # this should set the site_store_path variable if everything goes well.
 update_repo "$full_app_dir" "$CHECKOUT_DIR_NAME" "$DEFAULT_REPOSITORY_ROOT" "$repo_name"
-test_or_fail "Updating the repository storage directory"
+test_or_die "Updating the repository storage directory"
 
 sep