Project Aon Git Repositories
/
project-aon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo
[project-aon.git]
/
common
/
scripts
/
list-bookcodes-by-lang.sh
diff --git
a/common/scripts/list-bookcodes-by-lang.sh
b/common/scripts/list-bookcodes-by-lang.sh
index
edf62bf
..
a967395
100755
(executable)
--- 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"
if [ ! -d "$AONDIR" ]; then
>&2 echo "Please set the AONDIR environment variable"
- exit
+ exit
1
fi
book_db="$AONDIR/common/sqlite/bookcodes.db"
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"
do
if [[ ! $lang =~ ^[a-z][a-z]$ ]]; then
>&2 echo "invalid language"
- exit
+ exit
1
fi
fi
- sqlite3 -
column -
noheader "$book_db" <<EOF
+ sqlite3 -noheader "$book_db" <<EOF
select book
from bookcodes
where lang = '$lang'
select book
from bookcodes
where lang = '$lang'