mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-06 15:20:36 +00:00
21 lines
317 B
Bash
Executable File
21 lines
317 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
BRANCH_NAME=$(git branch | grep '*' | sed 's/* //')
|
|
|
|
if [[ $BRANCH_NAME != '(no branch)' ]]; then
|
|
unset GIT_WORK_TREE
|
|
|
|
# Run tests:
|
|
make test
|
|
|
|
if [[ $BRANCH_NAME == "master" ]]; then
|
|
# Build new manuals:
|
|
make build-man
|
|
|
|
# Add new files:
|
|
git add man/man1/*
|
|
fi
|
|
fi
|