9 lines
180 B
Bash
9 lines
180 B
Bash
|
#!/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
|