X-Git-Url: https://git.projectaon.org/?a=blobdiff_plain;f=common%2Fscripts%2Fcopy-svg.sh;h=a057dc4ed81134b01cafed53d05342925fbc7cd3;hb=7d3e9ca54e0cb51922b34659b920e61ee3a6e8d2;hp=f2b7e087ce74ed82620342753eb5f0f93a87f3a5;hpb=c6338dc3c2d3299fdf71c128a7b707d7a69762dd;p=project-aon.git diff --git a/common/scripts/copy-svg.sh b/common/scripts/copy-svg.sh index f2b7e08..a057dc4 100755 --- a/common/scripts/copy-svg.sh +++ b/common/scripts/copy-svg.sh @@ -11,10 +11,15 @@ if [ ! -d "$AONDIR" ]; then >&2 echo "Please set the AONDIR environment variable" - exit + exit 1 fi CURR_DIR=`pwd` +if [ "$AONDIR" -ef "$CURR_DIR" ]; then + >&2 echo "Current directory is the same as AONDIR: giving up" + exit 1 +fi + book_db="$AONDIR/common/sqlite/bookcodes.db" for book in $@