exit common configure script if DIR not set

This commit is contained in:
Cyryl Płotnicki-Chudyk 2016-07-30 21:08:05 +02:00
parent 41e380c57c
commit e1963ba100

View file

@ -13,7 +13,11 @@ fi
CURL="curl -sSf" CURL="curl -sSf"
#submodules if [[ -z $DIR ]]; then
echo "please set DIR"
exit 1
fi
DIR=`realpath $DIR` DIR=`realpath $DIR`
echo "using $DIR as the top level directory" echo "using $DIR as the top level directory"
cd $DIR cd $DIR