fix: switch to curl

- busybox's wget doesn't support redirect
This commit is contained in:
curben 2020-04-01 11:27:02 +01:00
parent 9d857d4f80
commit 8638295afb
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
3 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@ deploy_job:
stage: deploy_stage
before_script:
- 'which ssh-agent || (apk update && apk add openssh-client git grep sed)'
- 'which ssh-agent || (apk update && apk add curl openssh-client git grep sed)'
script:
- sh script.sh
@ -61,7 +61,7 @@ failed_job:
stage: failed_stage
before_script:
- 'which ssh-agent || (apk update && apk add openssh-client git grep sed)'
- 'which ssh-agent || (apk update && apk add curl openssh-client git grep sed)'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- echo "$GH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null

View File

@ -114,14 +114,14 @@ Dnsmasq-compatible blocklist is also available.
```
mkdir -p ~/.config/urlhaus-filter/
wget https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-dnsmasq.conf -O ~/.config/urlhaus-filter/urlhaus-filter-dnsmasq.conf
curl https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-dnsmasq.conf -o ~/.config/urlhaus-filter/urlhaus-filter-dnsmasq.conf
printf "\nconf-file=$HOME/.config/urlhaus-filter/urlhaus-filter-dnsmasq.conf\n" >> /etc/dnsmasq.conf
```
### Update
```
wget https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-dnsmasq.conf -O ~/.config/urlhaus-filter/urlhaus-filter-dnsmasq.conf
curl https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-dnsmasq.conf -o ~/.config/urlhaus-filter/urlhaus-filter-dnsmasq.conf
```
<details>

View File

@ -7,8 +7,8 @@ mkdir -p "tmp/" && cd "tmp/"
## Prepare datasets
wget "https://urlhaus.abuse.ch/downloads/csv/" -O "urlhaus.zip"
wget "https://tranco-list.eu/top-1m.csv.zip" -O "top-1m.csv.zip"
curl -L "https://urlhaus.abuse.ch/downloads/csv/" -o "urlhaus.zip"
curl -L "https://tranco-list.eu/top-1m.csv.zip" -o "top-1m.csv.zip"
cp "../src/exclude.txt" "."