more standard scripting

This commit is contained in:
Martin Cech 2025-03-19 20:51:55 +01:00 committed by GitHub
parent 73a5364eae
commit 5e1f560440
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,8 +1,7 @@
#!/bin/bash
#!/usr/bin/env bash
# Unify locale settings temporarily to make sort produce the same order
LC_ALL=C
export LC_ALL
export LC_ALL=C
# Converts uppercase to lowercase, sorts, removes duplicates and removes allowlisted domains
cat disposable_email_blocklist.conf | tr '[:upper:]' '[:lower:]' | sort -f | uniq -i > temp.conf