From: Chris Sharp Date: Mon, 27 Oct 2014 16:57:50 +0000 (-0400) Subject: We don't want to try and match the same patron to oneself. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9f538b9b4fa7165fcf11ccb118fed9fb6bcc88e9;p=contrib%2Fpines.git We don't want to try and match the same patron to oneself. --- diff --git a/patron-merge-tools/unmerge.sh b/patron-merge-tools/unmerge.sh index 9132633..87f53d7 100755 --- 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 <