adding abnormal termination for errors
authorJonathan Blake <jonathan.blake@projectaon.org>
Thu, 15 Feb 2018 15:34:14 +0000 (15:34 +0000)
committerJonathan Blake <jonathan.blake@projectaon.org>
Thu, 15 Feb 2018 15:34:14 +0000 (15:34 +0000)
git-svn-id: https://projectaon.org/data/trunk@2694 f6f3e2d7-ff33-0410-aaf5-b4bee2cdac11

common/scripts/copy-all-formats.sh
common/scripts/copy-ebooks.sh
common/scripts/copy-svg.sh
common/scripts/copy-xhtml.sh
common/scripts/list-bookcodes-all.sh
common/scripts/list-bookcodes-by-lang.sh
common/scripts/list-bookcodes-by-series.sh

index 3440ad9..f22df65 100755 (executable)
@@ -11,7 +11,7 @@
 
 if [ ! -d "$AONDIR" ]; then
     >&2 echo "Please set the AONDIR environment variable"
-    exit
+    exit 1
 fi
 BASE_DIR="$AONDIR/common/scripts"
 
index aea05d5..1e76fc5 100755 (executable)
 
 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
+    exit 1
 fi
 
 BASE_DIR="$AONDIR/common/epub"
index 8498c4a..a057dc4 100755 (executable)
 
 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
+    exit 1
 fi
 
 book_db="$AONDIR/common/sqlite/bookcodes.db"
index ab24393..0dde264 100755 (executable)
 
 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
+    exit 1
 fi
 
 book_db="$AONDIR/common/sqlite/bookcodes.db"
index 043835b..8f738e3 100755 (executable)
@@ -4,7 +4,7 @@
 
 if [ ! -d "$AONDIR" ]; then
     >&2 echo "Please set the AONDIR environment variable"
-    exit
+    exit 1
 fi
 
 book_db="$AONDIR/common/sqlite/bookcodes.db"
index edf62bf..43d1d79 100755 (executable)
@@ -7,7 +7,7 @@
 
 if [ ! -d "$AONDIR" ]; then
     >&2 echo "Please set the AONDIR environment variable"
-    exit
+    exit 1
 fi
 
 book_db="$AONDIR/common/sqlite/bookcodes.db"
@@ -16,7 +16,7 @@ for lang in $@
 do
     if [[ ! $lang =~ ^[a-z][a-z]$ ]]; then
         >&2 echo "invalid language"
-        exit
+        exit 1
     fi
 
     sqlite3 -column -noheader "$book_db" <<EOF
index 88d9924..9ab6c92 100755 (executable)
@@ -7,7 +7,7 @@
 
 if [ ! -d "$AONDIR" ]; then
     >&2 echo "Please set the AONDIR environment variable"
-    exit
+    exit 1
 fi
 
 book_db="$AONDIR/common/sqlite/bookcodes.db"
@@ -16,7 +16,7 @@ for series in $@
 do
     if [[ ! $series =~ ^[a-z][a-z]$ ]]; then
         >&2 echo "invalid series"
-        exit
+        exit 1
     fi
 
     sqlite3 -column -noheader "$book_db" <<EOF