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:
parent
db619790be
commit
f1fe363083
2 changed files with 12 additions and 0 deletions
|
@ -13,3 +13,5 @@ compact-mode
|
||||||
common
|
common
|
||||||
fonts
|
fonts
|
||||||
welcome
|
welcome
|
||||||
|
scripts
|
||||||
|
workflows
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue