Advertisement
Guest User

Untitled

a guest
May 26th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #/usr/bin/env bash
  2.  
  3. changed_files="$(git diff-tree -r --name-only --no-commit-id $1 $2)"
  4.  
  5. check_run() {
  6. echo "$changed_files" | grep --quiet "$1" && eval "$2"
  7. }
  8.  
  9. check_run npm-shrinkwrap.json "npm prune && npm install"
  10. # check_run package.json "npm prune && npm install"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement