From 60e97a23c32399ffc8ab7c5db315f3f8c782b8e4 Mon Sep 17 00:00:00 2001 From: BlackDex Date: Fri, 22 Nov 2024 21:09:44 +0100 Subject: [PATCH] Added some missing changes and CI --- scripts/generate_patch_file.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/generate_patch_file.sh b/scripts/generate_patch_file.sh index d6e3ca4..ee82ed5 100755 --- a/scripts/generate_patch_file.sh +++ b/scripts/generate_patch_file.sh @@ -23,7 +23,8 @@ fi PATCH_FILENAME="${VAULT_VERSION}.patch" if [ "$(git status --porcelain | wc -l)" -ge 1 ]; then - git --no-pager diff --no-color --minimal --abbrev=10 -- . \ + git add -A + git --no-pager diff --cached --no-color --minimal --abbrev=10 -- . \ ':!package-lock.json' \ ':!apps/web/src/favicon.ico' \ ':!apps/web/src/images/logo.svg' \ @@ -31,6 +32,7 @@ if [ "$(git status --porcelain | wc -l)" -ge 1 ]; then ':!apps/web/src/images/logo-dark@2x.png' \ ':!apps/web/src/images/logo-white@2x.png' \ ':!apps/web/src/images/icon-white.png' \ + ':!apps/web/src/images/icon-dark.png' \ ':!apps/web/src/images/icons/android-chrome-192x192.png' \ ':!apps/web/src/images/icons/android-chrome-512x512.png' \ ':!apps/web/src/images/icons/apple-touch-icon.png' \ @@ -45,6 +47,7 @@ if [ "$(git status --porcelain | wc -l)" -ge 1 ]; then ':!bitwarden_license/' \ ':!apps/web/src/app/tools/access-intelligence/' \ > "../patches/${PATCH_FILENAME}" + git reset -q echo "Patch has been created here: patches/${PATCH_FILENAME}" else echo "No changes found, skip generating a patch file."