X-Git-Url: http://git.projectaon.org/?a=blobdiff_plain;f=common%2Fscripts%2Flist-bookcodes-by-lang.sh;h=a9673950d21c59a95cc8cef7a620c6f87a9f6e69;hb=cfd6e8d6e0a1ed8d756e8f8555cc9ec8a1d1cb46;hp=edf62bfbbf3a3477bf79257789b4167fb549fba4;hpb=c6338dc3c2d3299fdf71c128a7b707d7a69762dd;p=project-aon.git diff --git a/common/scripts/list-bookcodes-by-lang.sh b/common/scripts/list-bookcodes-by-lang.sh index edf62bf..a967395 100755 --- a/common/scripts/list-bookcodes-by-lang.sh +++ b/common/scripts/list-bookcodes-by-lang.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,10 +16,10 @@ for lang in $@ do if [[ ! $lang =~ ^[a-z][a-z]$ ]]; then >&2 echo "invalid language" - exit + exit 1 fi - sqlite3 -column -noheader "$book_db" <