guess the ERESSEA environment if it is missing

This commit is contained in:
Enno Rehling 2014-09-21 16:55:28 +02:00
parent 74582aeb2f
commit 8432a6369d
1 changed files with 2 additions and 1 deletions

View File

@ -118,7 +118,8 @@ while getopts :g:t:f:v: o; do
done done
shift $((OPTIND-1)) shift $((OPTIND-1))
[ -d $ERESSEA ] || echo "invalid or missing env variable ERESSEA ($ERESSEA)" [ -z $ERESSEA ] && ERESSEA=$HOME/eressea
[ -d $ERESSEA ] || abort "invalid or missing env variable ERESSEA ($ERESSEA)"
[ -z $1 ] && usage [ -z $1 ] && usage
[ -z $SOURCE ] && SOURCE=$ERESSEA/git [ -z $SOURCE ] && SOURCE=$ERESSEA/git
[ -d $SOURCE ] || abort "missing source directory: $SOURCE" [ -d $SOURCE ] || abort "missing source directory: $SOURCE"