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
#!/bin/bash | |
# this script will run in Travis CICD, identify changed files | |
# and save the directories of the files if a condition is met, | |
# it will then print the array of matching directories | |
if [[ "$TRAVIS_EVENT_TYPE" == "push" ]]; then | |
# collect only changed files from commit | |
files=($(git diff-tree --no-commit-id --name-only -r "$TRAVIS_COMMIT")) | |
elif [[ "$TRAVIS_EVENT_TYPE" == "pull_request" ]]; then | |
# collect all changed files from commit range |
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
#!/bin/bash | |
# Michelle L. Gill | |
# 2014/10/25 | |
# For use with Today Scripts | |
# http://www.reddit.com/r/osx/comments/2k24ps/today_scripts_widget_update_colorized_output | |
# Inspired by: https://gist.github.com/anonymous/470bb40b05173fdb6348 | |
# Set this to "cpu" or "mem" | |
procname="cpu" |