mirror of
https://github.com/dani-garcia/bw_web_builds.git
synced 2024-12-26 04:18:15 +03:00
Merge pull request #83 from stefan0xC/exclude-package-lock
exclude package-lock.json from generated patches
This commit is contained in:
commit
458eb75939
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ fi
|
||||||
PATCH_FILENAME="${VAULT_VERSION}.patch"
|
PATCH_FILENAME="${VAULT_VERSION}.patch"
|
||||||
|
|
||||||
if [ "$(git status --porcelain | wc -l)" -ge 1 ]; then
|
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}"
|
echo "Patch has been created here: patches/${PATCH_FILENAME}"
|
||||||
else
|
else
|
||||||
echo "No changes found, skip generating a patch file."
|
echo "No changes found, skip generating a patch file."
|
||||||
|
|
Loading…
Reference in a new issue