#!/bin/bash type="${0##*/}" type="${type%_database-relation-joined}" relation-set type "$type" || { err "Could not set relation ${WHITE}type${NORMAL} to '$type'." exit 1 } . ./hooks/sql_database-relation-joined