mirror of
https://github.com/Chatterino/chatterino2.git
synced 2026-08-24 02:24:18 -05:00
chore: explicitly mark license for scripts/get-tlds-update.sh (#6668)
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2018 LajamerrMittesdine <danieljmerritt4394@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
#Download the official list of active TLDs from IANA
|
||||
#Remove the first line that contains data not needed.
|
||||
#Put everything that can be into lowercase.
|
||||
@@ -10,4 +14,4 @@ curl -s 'https://data.iana.org/TLD/tlds-alpha-by-domain.txt' | sed -e '1d' -e 's
|
||||
#Convert the punycode to Unicode.
|
||||
#Append the results to the current file.
|
||||
sed -n -e '/^xn--/p' tlds.txt | idn2 -d >> tlds.txt
|
||||
mv tlds.txt ../resources/tlds.txt
|
||||
mv tlds.txt ../resources/tlds.txt
|
||||
|
||||
Reference in New Issue
Block a user