Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Get a list of services which have changed against master
- #changed=()
- # Find all the .json files which have been directly updated
- changed=$(git diff --stat origin/master | grep "builds/.*\.json" | awk '{print $1}' | sed 's/builds\///g;s/\.json//g')
- # Find all the playbook yml files which have been directly updated
- changed+=$(git diff --stat origin/master | grep "playbooks" | awk '{print $1}' | sed 's/playbooks\///;s/-playbook.yml//')
- #echo ${changed[@]}
- for i in "${changed[@]}"; do echo "$i" ; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement