Merge pull request #27715 from woocommerce/fix/post-merge-script-exit-status
Fix post-merge.sh exit status
This commit is contained in:
commit
ed4750f97a
|
@ -3,7 +3,10 @@
|
|||
changedFiles="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
|
||||
|
||||
runOnChange() {
|
||||
echo "$changedFiles" | grep -q "$1" && eval "$2"
|
||||
if echo "$changedFiles" | grep -q "$1"
|
||||
then
|
||||
eval "$2"
|
||||
fi
|
||||
}
|
||||
|
||||
runOnChange "package-lock.json" "npm install"
|
||||
|
|
Loading…
Reference in New Issue