fox-send/scripts/sync-npm-dependencies.sh

9 lines
180 B
Bash
Raw Normal View History

#!/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