Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/bin/sh
  2. #
  3. # This example catches the codeship flag in commit messages.
  4. # If it is present the commit will run the CI server on codeship.
  5.  
  6. commit_regex='(--codeship)'
  7.  
  8. if ! grep -iqE "$commit_regex" "$1"
  9. then
  10. echo "" >> "$1"
  11. echo " --skip-ci" >> "$1"
  12. else
  13. echo "" >> "$1"
  14. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement