Skip to content

Commit

Permalink
Merge pull request #43 from amiaopensource/more-db-integration
Browse files Browse the repository at this point in the history
more db integration
  • Loading branch information
privatezero authored Jan 26, 2017
2 parents 43c0a1e + c223c32 commit 5ea64e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions verifylto
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ done
shift $(( ${OPTIND} - 1 ))

SOURCE_DIR="${1}"
_report_to_db
if [[ ! $(echo "${TAPE_SERIAL}" | grep "${TAPE_SERIAL_REGEX}") ]] ; then
echo "${TAPE_SERIAL} is not valid. The tape id must be exactly 6 capital letters and/or numbers."
_usage
Expand All @@ -53,3 +54,6 @@ case "${TAPE_EJECT}" in
y|Y) umount "${TAPE_PATH}" ;;
*) echo "Done verifying but not ejecting ${TAPE_SERIAL}." ;;
esac

_eventoutcome_update
_report_fixity_db

0 comments on commit 5ea64e0

Please sign in to comment.