exclude package-lock.json from generated patches

This commit is contained in:
Stefan Melmuk 2022-10-07 05:30:43 +02:00
parent 11efcbcc2f
commit 9d8005c6b9
No known key found for this signature in database
GPG key ID: 817020C608FE9C09

View file

@ -23,7 +23,7 @@ fi
PATCH_FILENAME="${VAULT_VERSION}.patch"
if [ "$(git status --porcelain | wc -l)" -ge 1 ]; then
git --no-pager diff --no-color --minimal > "../patches/${PATCH_FILENAME}"
git --no-pager diff --no-color --minimal -- . ':!package-lock.json' > "../patches/${PATCH_FILENAME}"
echo "Patch has been created here: patches/${PATCH_FILENAME}"
else
echo "No changes found, skip generating a patch file."