Tamarin/hooks/common/run-project-hooks

15 lines
270 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env bash
set -e
step=$1
hook=src/.tamarin/$step
if [ ! -f "$hook" ] || [ ! -x "$hook" ]; then
tamarin_info "No project hook (or not executable) for \"$step\"... Skipping."
exit
fi
tamarin_info "Project hook found for \"$step\". Running it..."
"$hook"