You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2021/07/28 14:36:45 UTC

[sling-aggregator] 02/02: SLING-10676 - script as used for the initial SECURITY.md addition to all repos

This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-aggregator.git

commit ac662798d16bbddb1ad55aaaaddf999cd199a5af
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Wed Jul 28 16:26:47 2021 +0200

    SLING-10676 - script as used for the initial SECURITY.md addition to all repos
---
 add-security-md.sh | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/add-security-md.sh b/add-security-md.sh
index c8d30ff..a02253f 100755
--- a/add-security-md.sh
+++ b/add-security-md.sh
@@ -7,11 +7,20 @@
 # to add or update the SECURITY.md file from the
 # "aggregator" project to all repositories found
 # under it.
+export ME=$(basename $0)
 
 SEC=SECURITY.md
+echo "Adding $SEC to $(basename $PWD)"
+
+if [[ -f $ME ]]
+then
+    echo "Ignoring aggregator folder"
+    exit 0
+fi
+
 git checkout master
 git pull origin master
 cat ../aggregator/$SEC > $SEC
 git add $SEC
 git commit -m "SLING-10676 - add or update $SEC"
-git push origin master
\ No newline at end of file
+# TODO git push origin master
\ No newline at end of file