Created
February 14, 2015 00:33
-
-
Save zbeekman/b616322fe32abf4a81fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/bash | |
if [ -e ".travis.yml" ]; then | |
if type ruby > /dev/null 2>&1 && type travis > /dev/null 2>&1; then | |
stat_file=".travis_status~" | |
status=$(travis branches 2>&1) | |
echo "$status" > $stat_file | |
# Ignore status file from git repo | |
if ! ([ -e .git/info/exclude ] && grep -q "$stat_file" .git/info/exclude); then | |
[ -d .git/info ] && echo "$stat_file" >> .git/info/exclude | |
fi | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment