Last active
February 1, 2020 03:09
-
-
Save eklex/99638beb4b5a6ba39b43100a264df43a to your computer and use it in GitHub Desktop.
Get latest version of dnscrypt-proxy utils
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NOW=`date +"%Y-%m-%d_%T"` | |
BASE_LOCAL_DIR="." | |
LOCAL_DIR="$BASE_LOCAL_DIR/$NOW" | |
BASE_URL="https://raw.githubusercontent.com/DNSCrypt/dnscrypt-proxy/master/utils/generate-domains-blacklists" | |
FILES=( | |
"generate-domains-blacklist.py" | |
"domains-whitelist.txt" | |
"domains-time-restricted.txt" | |
"domains-blacklist.conf" | |
"domains-blacklist-local-additions.txt" | |
) | |
mkdir -p "$LOCAL_DIR" | |
for file in "${FILES[@]}"; do | |
url="$BASE_URL/$file" | |
curl -s "$url" > "$LOCAL_DIR/$file" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment