From ea16a8235f82f5b28e2bc97b694d6dafaf412cab Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sat, 2 Mar 2013 23:04:10 -0500 Subject: [PATCH] Display informative warning if setup.conf is missing. --- bin/setup.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/setup.sh b/bin/setup.sh index aeb8f8f229f9..0db06e1665e0 100755 --- a/bin/setup.sh +++ b/bin/setup.sh @@ -9,6 +9,12 @@ case "$CALLEDPATH" in ;; esac +if [ ! -f "$CALLEDPATH/setup.conf" ]; then + echo + echo "Missing configuration file. Please copy $CALLEDPATH/setup.conf.txt to $CALLEDPATH/setup.conf and edit it." + exit 1 +fi + source "$CALLEDPATH/setup.conf" if [ "$1" = '-h' ] || [ "$1" = '--help' ]; then