mirror of
https://github.com/disposable-email-domains/disposable-email-domains.git
synced 2025-05-10 02:25:54 +08:00
more standard scripting
This commit is contained in:
parent
73a5364eae
commit
5e1f560440
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user