X-Git-Url: http://git.projectaon.org/?p=project-aon.git;a=blobdiff_plain;f=common%2Fscripts%2Flist-bookcodes-by-series.sh;h=9ab6c92d42ea6a58947cf7ff14f090c2c75774ef;hp=88d9924bd2bb94540f036b958e5c7b53022dcb4d;hb=7d3e9ca54e0cb51922b34659b920e61ee3a6e8d2;hpb=b64ca08c4a11cae7af256f22c7c54aa24fc9857d diff --git a/common/scripts/list-bookcodes-by-series.sh b/common/scripts/list-bookcodes-by-series.sh index 88d9924..9ab6c92 100755 --- a/common/scripts/list-bookcodes-by-series.sh +++ b/common/scripts/list-bookcodes-by-series.sh @@ -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" <