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
2 changed files with 12 additions and 0 deletions

View File

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

View File

@@ -4,6 +4,11 @@ set -e
COMPONENT_ROOT=$(pwd)/src/zen
EXTRA_COMPONENTS=(
"scripts"
"workflows"
)
echo "" > .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
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
sed -i '/^$/d' .formal-git/components