X-Git-Url: http://git.projectaon.org/?a=blobdiff_plain;f=common%2Fscripts%2Fcopy-ebooks.sh;fp=common%2Fscripts%2Fcopy-ebooks.sh;h=aea05d5a4f71eba1bcf5ad9743f677a88e706733;hb=b64ca08c4a11cae7af256f22c7c54aa24fc9857d;hp=3c39738277276dfb79238b5d5a797a21ea0d2994;hpb=c6338dc3c2d3299fdf71c128a7b707d7a69762dd;p=project-aon.git diff --git a/common/scripts/copy-ebooks.sh b/common/scripts/copy-ebooks.sh index 3c39738..aea05d5 100755 --- a/common/scripts/copy-ebooks.sh +++ b/common/scripts/copy-ebooks.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 + BASE_DIR="$AONDIR/common/epub" book_db="$AONDIR/common/sqlite/bookcodes.db"