From 140ce517cf0fb6ef9d6f1ee654b7a7a832d5d3cd Mon Sep 17 00:00:00 2001 From: William Petit Date: Wed, 23 Aug 2023 11:42:53 -0600 Subject: [PATCH] feat(gitea-release): automatically add tools directory to git ignored files --- tasks/gitea.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/gitea.mk b/tasks/gitea.mk index 3c1511e..77ff1b7 100644 --- a/tasks/gitea.mk +++ b/tasks/gitea.mk @@ -26,4 +26,5 @@ mkt-gitea-release: tools/gitea-release/bin/gitea-release.sh tools/gitea-release/bin/gitea-release.sh: mkdir -p tools/gitea-release/bin curl --output tools/gitea-release/bin/gitea-release.sh https://forge.cadoles.com/Cadoles/Jenkins/raw/branch/master/resources/com/cadoles/gitea/gitea-release.sh - chmod +x tools/gitea-release/bin/gitea-release.sh \ No newline at end of file + chmod +x tools/gitea-release/bin/gitea-release.sh + grep -qF -- "tools/" ".gitignore" 2>/dev/null || echo "tools/" >> ".gitignore" \ No newline at end of file