24
1
Fork 0
drop.chapril.org-firefoxsend/scripts/sync-npm-dependencies.sh

9 lines
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