mirror of https://github.com/sobolevn/git-secret
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
340 B
Bash
22 lines
340 B
Bash
9 years ago
|
#!/usr/bin/env bash
|
||
9 years ago
|
|
||
|
set -e
|
||
|
|
||
9 years ago
|
BRANCH_NAME=$(git branch | grep '*' | sed 's/* //')
|
||
9 years ago
|
|
||
9 years ago
|
if [[ $BRANCH_NAME != '(no branch)' ]]; then
|
||
|
unset GIT_WORK_TREE
|
||
9 years ago
|
|
||
9 years ago
|
# Run tests:
|
||
|
make test
|
||
9 years ago
|
|
||
9 years ago
|
if [[ $BRANCH_NAME == "master" ]]; then
|
||
|
# Build new manuals:
|
||
|
make build-man
|
||
|
|
||
|
# Add new files:
|
||
|
git add man/man1/*
|
||
9 years ago
|
git add man/man7/*
|
||
9 years ago
|
fi
|
||
9 years ago
|
fi
|