send/scripts/sync-npm-dependencies.sh
2019-09-05 08:14:14 -07:00

9 lines
No EOL
180 B
Bash
Executable file

#!/bin/bash
echo "checking package-lock.json for changes"
if [ "$1" != "$2" ]; then
DIFF=$(git diff $1 $2 package-lock.json)
if [ "$DIFF" != "" ]; then
npm install
fi
fi