From 65cf0d74d8a6cc44729dfa72996f8eac20268911 Mon Sep 17 00:00:00 2001
From: Sam Gleske <sag47@drexel.edu>
Date: Fri, 7 Feb 2014 15:46:47 -0500
Subject: [PATCH] fix source update_mirror

---
 update_mirror.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/update_mirror.sh b/update_mirror.sh
index 0dae45c..6edf088 100755
--- a/update_mirror.sh
+++ b/update_mirror.sh
@@ -10,9 +10,13 @@ set -e
 
 #Include all user options and dependencies
 git_mirrors_dir="${0%/*}"
-. "${git_mirrors_dir}/config.sh"
+[ -f "${git_mirrors_dir}/config.sh" ] && . "${git_mirrors_dir}/config.sh"
 . "${git_mirrors_dir}/lib/VERSION"
 . "${git_mirrors_dir}/lib/functions.sh"
+if [ ! -f "${git_mirrors_dir}/config.sh" ];then
+  red_echo "config.sh missing!  Copy and customize from config.sh.SAMPLE.  Aborting." 1>&2
+  exit 1
+fi
 
 cd "${git_mirrors_dir}"
 
-- 
GitLab