Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- # This example catches the codeship flag in commit messages.
- # If it is present the commit will run the CI server on codeship.
- commit_regex='(--codeship)'
- if ! grep -iqE "$commit_regex" "$1"
- then
- echo "" >> "$1"
- echo " --skip-ci" >> "$1"
- else
- echo "" >> "$1"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement