This commit is contained in:
Luk 2024-01-28 12:15:44 +08:00
parent 35a51a61aa
commit 6161344403

View File

@ -56,7 +56,7 @@ echo ""
find . -mindepth 1 -maxdepth 3 -type d -name '[^.]*' | grep -E -v 'node_modules|uni_modules|\.deploy_git|\.git|.svn|\.vscode|\.wrangler|unpackage|_webroot|_logstore|_datasotre|_archive|_filestore|_ssl' | while read repo
do
if [ -d "$repo/.git" ]
if [ -d "$repo/.gitignore" ] # some git repo need to keep privacy, therefore judge from .gitignore, not from .git
then
echo "---- updating .gitignore in [[$repo]] ----"
cat $IGNOREPATH $repo/.gitignore_local 2>/dev/null > $repo/.gitignore