IssueID #1104: separated git hook from command script (so it can be run independently)
This commit is contained in:
9
scripts/validate_examples_hook
Executable file
9
scripts/validate_examples_hook
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
branch=`git rev-parse --abbrev-ref HEAD`
|
||||
script_dir="$(dirname "$(readlink -f "$0")")"
|
||||
cd $script_dir
|
||||
|
||||
if [[ $branch == "master" ]]; then
|
||||
./validate_examples
|
||||
fi
|
||||
Reference in New Issue
Block a user