X-Git-Url: http://git.projectaon.org/?p=project-aon.git;a=blobdiff_plain;f=common%2Fscripts%2Fcopy-ebooks.sh;h=651c0c56b74466a311b0bb985b0e49c4ccde70a1;hp=1e76fc58360076f9033f64516d692010297aae55;hb=b69a7bbcab9942e91cf644e10491f42d62ff2752;hpb=7d3e9ca54e0cb51922b34659b920e61ee3a6e8d2 diff --git a/common/scripts/copy-ebooks.sh b/common/scripts/copy-ebooks.sh index 1e76fc5..651c0c5 100755 --- a/common/scripts/copy-ebooks.sh +++ b/common/scripts/copy-ebooks.sh @@ -21,14 +21,13 @@ if [ "$AONDIR" -ef "$CURR_DIR" ]; then fi BASE_DIR="$AONDIR/common/epub" -book_db="$AONDIR/common/sqlite/bookcodes.db" for book in $@ do - row=($(sqlite3 -separator ' ' $book_db "select lang, series from bookcodes where book = '$book';")) + row=( $($AONDIR/common/scripts/list-book-info.sh $book) ) - lang=${row[0]} - series=${row[1]} + lang=${row[1]} + series=${row[2]} source_dir="$BASE_DIR/$book"