Display informative warning if setup.conf is missing.
authorTim Otten <to-git@think.hm>
Sun, 3 Mar 2013 04:04:10 +0000 (23:04 -0500)
committerTim Otten <to-git@think.hm>
Sun, 3 Mar 2013 04:04:10 +0000 (23:04 -0500)
bin/setup.sh

index aeb8f8f229f9195cb2bdddc98f8d936df7b78c0e..0db06e1665e0d4547aa599b473ec91a15d5e8ec1 100755 (executable)
@@ -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