Remove prompting from example Git pre-commit hook.
[metastore.git] / examples / pre-commit
blob1b5d5c62b2ad6c3a77cb7b6d20e647c64b85040a
1 #!/bin/bash
3 # An example hook script to store metadata information using
4 # metastore on each commit.
6 if ! metastore -s; then
7 echo "Failed to execute metastore -s" >&2
8 exit 1
9 fi
11 if [ ! -e ".metadata" ]; then
12 echo ".metadata missing" >&2
13 exit 1
16 if ! git-add .metadata; then
17 echo "Failed to execute git-add .metadata" >&2
18 exit 1
21 exit 0