Skip to content

Commit

Permalink
Merge pull request #15 from totten/setup-conf-advice
Browse files Browse the repository at this point in the history
Display informative warning if setup.conf is missing.
  • Loading branch information
kurund committed Mar 3, 2013
2 parents 50a067f + ea16a82 commit b67c216
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b67c216

Please sign in to comment.