From c8324cbb9dccbf03ad69d9492df2e03c550c6e8b Mon Sep 17 00:00:00 2001 From: Andrew Weaver Date: Tue, 24 Jan 2017 11:03:09 -0500 Subject: [PATCH 1/2] centralize variable declaration --- mmfunctions | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mmfunctions b/mmfunctions index f5d10e91..cb22ef4d 100755 --- a/mmfunctions +++ b/mmfunctions @@ -172,6 +172,14 @@ _premis_event_list(){ eventType="fixity" MEDIA_ID="${TAPE_SERIAL}" fi + if [ "$eventDetail" = "verifylto" ] ; then + eventType="fixity" + MEDIA_ID="${TAPE_SERIAL}" + db_fixity=$(cat "${READBACKDIR}/${TAPE_SERIAL}_ReadBack_checksum_${VERIFYTIME}.md5") + if [ -z "$db_fixity" ] ; then + event_outcome="No fixity information" + fi + fi } _open_mysql_plist(){ From f5518dc57107d42087c31515c8aae65e47e8bd88 Mon Sep 17 00:00:00 2001 From: Andrew Weaver Date: Wed, 25 Jan 2017 09:58:51 -0500 Subject: [PATCH 2/2] eliminate redundant declaration --- mmfunctions | 3 --- 1 file changed, 3 deletions(-) diff --git a/mmfunctions b/mmfunctions index cb22ef4d..8804c6c2 100755 --- a/mmfunctions +++ b/mmfunctions @@ -176,9 +176,6 @@ _premis_event_list(){ eventType="fixity" MEDIA_ID="${TAPE_SERIAL}" db_fixity=$(cat "${READBACKDIR}/${TAPE_SERIAL}_ReadBack_checksum_${VERIFYTIME}.md5") - if [ -z "$db_fixity" ] ; then - event_outcome="No fixity information" - fi fi }