projects
/
contrib
/
pines.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
092d41a
)
We don't want to try and match the same patron to oneself.
author
Chris Sharp
<csharp@georgialibraries.org>
Mon, 27 Oct 2014 16:57:50 +0000
(12:57 -0400)
committer
Chris Sharp
<csharp@georgialibraries.org>
Mon, 27 Oct 2014 16:57:50 +0000
(12:57 -0400)
patron-merge-tools/unmerge.sh
patch
|
blob
|
history
diff --git
a/patron-merge-tools/unmerge.sh
b/patron-merge-tools/unmerge.sh
index
9132633
..
87f53d7
100755
(executable)
--- a/
patron-merge-tools/unmerge.sh
+++ b/
patron-merge-tools/unmerge.sh
@@
-36,6
+36,11
@@
PSQL_USER="evergreen"
read -p "Please enter the lead patron's barcode: " LEAD_PATRON_BARCODE
read -p "Please enter the merged patron's barcode: " MERGE_PATRON_BARCODE
+if [ "$LEAD_PATRON_BARCODE" = "$MERGE_PATRON_BARCODE" ]; then
+ echo "Barcodes must be different from each other."
+ exit 1;
+fi
+
read -d '' LEAD_PATRON_SQL <<EOF
SELECT usr
FROM actor.card