X-Git-Url: https://git.projectaon.org/?p=project-aon.git;a=blobdiff_plain;f=common%2Fscripts%2Fcopy-xhtml.sh;h=ab24393b4690be127813073941fa9d51810e9241;hp=cce7ada2a437af675c3cb33c1b88311b7ec20c75;hb=b64ca08c4a11cae7af256f22c7c54aa24fc9857d;hpb=c6338dc3c2d3299fdf71c128a7b707d7a69762dd diff --git a/common/scripts/copy-xhtml.sh b/common/scripts/copy-xhtml.sh index cce7ada..ab24393 100755 --- a/common/scripts/copy-xhtml.sh +++ b/common/scripts/copy-xhtml.sh @@ -15,6 +15,11 @@ if [ ! -d "$AONDIR" ]; then fi CURR_DIR=`pwd` +if [ "$AONDIR" -ef "$CURR_DIR" ]; then + >&2 echo "Current directory is the same as AONDIR: giving up" + exit +fi + book_db="$AONDIR/common/sqlite/bookcodes.db" for book in $@