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
added test to avoid attempting to overwrite files directly in $AONDIR
[project-aon.git]
/
common
/
scripts
/
copy-svg.sh
diff --git
a/common/scripts/copy-svg.sh
b/common/scripts/copy-svg.sh
index
f2b7e08
..
8498c4a
100755
(executable)
--- a/
common/scripts/copy-svg.sh
+++ b/
common/scripts/copy-svg.sh
@@
-15,6
+15,11
@@
if [ ! -d "$AONDIR" ]; then
fi
CURR_DIR=`pwd`
+if [ "$AONDIR" -ef "$CURR_DIR" ]; then
+ >&2 echo "Current directory is the same as AONDIR: giving up"
+ exit
+fi
+
book_db="$AONDIR/common/sqlite/bookcodes.db"
for book in $@