Skip to content

Commit 52670ba

Browse files
committed
fix: Use gsed on macOS for consistency, + ensure back-up directories are always created
Signed-off-by: celenity <celenity@celenity.dev>
1 parent 825ce73 commit 52670ba

File tree

214 files changed

+334
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+334
-107
lines changed

abp/gen/adobe_gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Process the adobe.txt file
4-
cat base/adobe.txt | grep -v '^#' | grep -v '^\s*$' | sed 's/^/||/' | sed 's/$/^/' | sort | uniq > abp/adobe_abp.txt
4+
cat base/adobe.txt | grep -v '^#' | grep -v '^\s*$' | $SED 's/^/||/' | $SED 's/$/^/' | sort | uniq > abp/adobe_abp.txt
55

66
# Create the header and combine with the processed file
77
(echo "! Title: 🎨 BadBlock - Adobe (ABP)" && \

abp/gen/amazon_gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Process the amazon.txt file
4-
cat base/amazon.txt | grep -v '^#' | grep -v '^\s*$' | sed 's/^/||/' | sed 's/$/^/' | sort | uniq > abp/amazon_abp.txt
4+
cat base/amazon.txt | grep -v '^#' | grep -v '^\s*$' | $SED 's/^/||/' | $SED 's/$/^/' | sort | uniq > abp/amazon_abp.txt
55

66
# Create the header and combine with the processed file
77
(echo "! Title: 📦 BadBlock - Amazon (ABP)" && \

abp/gen/android_whitelist_gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Process the whitelist.txt file
4-
cat base/whitelists/android.txt | grep -v '^#' | grep -v '^\s*$' | sed 's/^/@@|/' | sed 's/$/^/' | sort | uniq > abp/android_whitelist_abp.txt
4+
cat base/whitelists/android.txt | grep -v '^#' | grep -v '^\s*$' | $SED 's/^/@@|/' | $SED 's/$/^/' | sort | uniq > abp/android_whitelist_abp.txt
55

66
# Create the header and combine with the processed file
77
(echo "! Title: 🤖 BadBlock - Android Whitelist (ABP)" && \

abp/gen/apple_gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Process the apple.txt file
4-
cat base/apple.txt | grep -v '^#' | grep -v '^\s*$' | sed 's/^/||/' | sed 's/$/^/' | sort | uniq > abp/apple_abp.txt
4+
cat base/apple.txt | grep -v '^#' | grep -v '^\s*$' | $SED 's/^/||/' | $SED 's/$/^/' | sort | uniq > abp/apple_abp.txt
55

66
# Create the header and combine with the processed file
77
(echo "! Title:  BadBlock - Apple (ABP)" && \

abp/gen/apple_whitelist_gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Process the whitelist.txt file
4-
cat base/whitelists/apple.txt | grep -v '^#' | grep -v '^\s*$' | sed 's/^/@@|/' | sed 's/$/^/' | sort | uniq > abp/apple_whitelist_abp.txt
4+
cat base/whitelists/apple.txt | grep -v '^#' | grep -v '^\s*$' | $SED 's/^/@@|/' | $SED 's/$/^/' | sort | uniq > abp/apple_whitelist_abp.txt
55

66
# Create the header and combine with the processed file
77
(echo "! Title: 🍎 BadBlock - Apple Whitelist (ABP)" && \

abp/gen/brave_gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Process the brave.txt file
4-
cat base/brave.txt | grep -v '^#' | grep -v '^\s*$' | sed 's/^/||/' | sed 's/$/^/' | sort | uniq > abp/brave_abp.txt
4+
cat base/brave.txt | grep -v '^#' | grep -v '^\s*$' | $SED 's/^/||/' | $SED 's/$/^/' | sort | uniq > abp/brave_abp.txt
55

66
# Create the header and combine with the processed file
77
(echo "! Title: 🦁 BadBlock - Brave (ABP)" && \

abp/gen/browser_whitelist_gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Process the whitelist.txt file
4-
cat base/whitelists/browser.txt | grep -v '^#' | grep -v '^\s*$' | sed 's/^/@@|/' | sed 's/$/^/' | sort | uniq > abp/browser_whitelist_abp.txt
4+
cat base/whitelists/browser.txt | grep -v '^#' | grep -v '^\s*$' | $SED 's/^/@@|/' | $SED 's/$/^/' | sort | uniq > abp/browser_whitelist_abp.txt
55

66
# Create the header and combine with the processed file
77
(echo "! Title: 🌐 BadBlock - Browser Whitelist (ABP)" && \

abp/gen/captcha_whitelist_gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Process the whitelist.txt file
4-
cat base/whitelists/captcha.txt | grep -v '^#' | grep -v '^\s*$' | sed 's/^/@@|/' | sed 's/$/^/' | sort | uniq > abp/captcha_whitelist_abp.txt
4+
cat base/whitelists/captcha.txt | grep -v '^#' | grep -v '^\s*$' | $SED 's/^/@@|/' | $SED 's/$/^/' | sort | uniq > abp/captcha_whitelist_abp.txt
55

66
# Create the header and combine with the processed file
77
(echo "! Title: 🦾 BadBlock - CAPTCHA Whitelist (ABP)" && \

abp/gen/captive_whitelist_gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Process the whitelist.txt file
4-
cat base/whitelists/captive.txt | grep -v '^#' | grep -v '^\s*$' | sed 's/^/@@|/' | sed 's/$/^/' | sort | uniq > abp/captive_whitelist_abp.txt
4+
cat base/whitelists/captive.txt | grep -v '^#' | grep -v '^\s*$' | $SED 's/^/@@|/' | $SED 's/$/^/' | sort | uniq > abp/captive_whitelist_abp.txt
55

66
# Create the header and combine with the processed file
77
(echo "! Title: 🛜 BadBlock - Captive Whitelist (ABP)" && \

abp/gen/certs_whitelist_gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Process the whitelist.txt file
4-
cat base/whitelists/certs.txt | grep -v '^#' | grep -v '^\s*$' | sed 's/^/@@|/' | sed 's/$/^/' | sort | uniq > abp/certs_whitelist_abp.txt
4+
cat base/whitelists/certs.txt | grep -v '^#' | grep -v '^\s*$' | $SED 's/^/@@|/' | $SED 's/$/^/' | sort | uniq > abp/certs_whitelist_abp.txt
55

66
# Create the header and combine with the processed file
77
(echo "! Title: 🖆 BadBlock - Certificate Validation Whitelist (ABP)" && \

0 commit comments

Comments
 (0)