1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-08 01:19:59 +02:00

refactor(scripts): no-bug - Added extra git components for commit messages

This commit is contained in:
Mr. M 2025-04-15 14:26:59 +02:00
parent db619790be
commit f1fe363083
No known key found for this signature in database
GPG key ID: 6292C4C8F8652B18
2 changed files with 12 additions and 0 deletions

View file

@ -13,3 +13,5 @@ compact-mode
common common
fonts fonts
welcome welcome
scripts
workflows

View file

@ -4,6 +4,11 @@ set -e
COMPONENT_ROOT=$(pwd)/src/zen COMPONENT_ROOT=$(pwd)/src/zen
EXTRA_COMPONENTS=(
"scripts"
"workflows"
)
echo "" > .formal-git/components echo "" > .formal-git/components
# iterate top directories and adding the base name to .formal-git/components # iterate top directories and adding the base name to .formal-git/components
@ -13,5 +18,10 @@ for dir in $(find $COMPONENT_ROOT -maxdepth 1 -type d | grep -v '\.git' | grep -
fi fi
done done
# iterate over the extra components and adding them to .formal-git/components
for extra in "${EXTRA_COMPONENTS[@]}"; do
echo "$extra" >> .formal-git/components
done
# remove all empty lines # remove all empty lines
sed -i '/^$/d' .formal-git/components sed -i '/^$/d' .formal-git/components