#!/bin/sh## An example hook script to set metadata information using# metastore after a successful mergeMSFILE=".metadata"
exit_on_fail(){"$@"if[$? -ne 0];thenecho"Failed to execute: $@" >&2exit1fi}if[ ! -e "$MSFILE"];thenecho"\"$MSFILE\" missing" >&2exit1fi
exit_on_fail \
metastore -a -e -E -q -f "$MSFILE"exit0