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 /usr/bin/env shebang
[project-aon.git]
/
common
/
scripts
/
list-bookcodes-by-series.sh
diff --git
a/common/scripts/list-bookcodes-by-series.sh
b/common/scripts/list-bookcodes-by-series.sh
index
88d9924
..
8005e41
100755
(executable)
--- a/
common/scripts/list-bookcodes-by-series.sh
+++ b/
common/scripts/list-bookcodes-by-series.sh
@@
-7,19
+7,19
@@
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"
for series in $@
do
fi
book_db="$AONDIR/common/sqlite/bookcodes.db"
for series in $@
do
- if [[ ! $series =~ ^[a-z]
[a-z]
$ ]]; then
+ if [[ ! $series =~ ^[a-z]
+
$ ]]; then
>&2 echo "invalid series"
>&2 echo "invalid series"
- exit
+ exit
1
fi
fi
- sqlite3 -
column -
noheader "$book_db" <<EOF
+ sqlite3 -noheader "$book_db" <<EOF
select book
from bookcodes
where series = '$series'
select book
from bookcodes
where series = '$series'