mirror of
https://github.com/tridactyl/tridactyl.git
synced 2026-09-10 07:16:33 -04:00
15 lines
267 B
Bash
Executable file
15 lines
267 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# stolen from https://gist.github.com/sindresorhus/7996717
|
|
|
|
changed_files="$(git diff-tree -r --name-only --no-commit-id $1 $2)"
|
|
|
|
|
|
file_changed() {
|
|
echo "$changed_files" | grep --quiet "$1"
|
|
}
|
|
|
|
if file_changed package.json; then
|
|
yarn install
|
|
fi
|