Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/usr/bin/env bash
- changed_files="$(git diff-tree -r --name-only --no-commit-id $1 $2)"
- check_run() {
- echo "$changed_files" | grep --quiet "$1" && eval "$2"
- }
- check_run npm-shrinkwrap.json "npm prune && npm install"
- # check_run package.json "npm prune && npm install"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement