git Projekt für Liste

This commit is contained in:
Robin Kloppe 2023-10-14 17:12:46 +02:00
parent af8fcc9391
commit 50068ef675
2 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
all-adblock.txt all-adblock.txt
compiled/
errors.log errors.log
own-rules.txt own-rules.txt
pre-adblock.txt pre-adblock.txt

View file

@ -19,7 +19,7 @@ set -e -u
#Remove comments in lists and change marker to comment #Remove comments in lists and change marker to comment
sed -i -e 's/^!.*$//g' -e 's/#!MARKER-/!MARKER-/g' pre-adblock.txt sed -i -e 's/^!.*$//g' -e 's/#!MARKER-/!MARKER-/g' pre-adblock.txt
echo '' > all-adblock.txt echo '' > compiled/all-adblock.txt
{ {
#Create Header #Create Header
@ -35,4 +35,9 @@ echo '' > all-adblock.txt
#Remove duplicate lines #Remove duplicate lines
awk '!seen[$0]++' pre-adblock.txt awk '!seen[$0]++' pre-adblock.txt
} >> all-adblock.txt } >> compiled/all-adblock.txt
cd compiled
git add all-adblock.txt
git commit -m "$date" > /dev/null
git push > /dev/null 2>&1