]>
Commit | Line | Data |
---|---|---|
16a21d78 JI |
1 | #! /usr/bin/env bash |
2 | ||
3 | while IFS= read -r requirement; do | |
4 | set -- $requirement | |
5 | case "$1" in | |
6 | suricata-update) | |
7 | echo "===> Fetching $1" | |
8 | (cd suricata-update && | |
9 | curl -Ls "$2" | tar zxf - --strip-components=1) | |
10 | ;; | |
11 | libhtp) | |
12 | echo "===> Fetching $1" | |
13 | mkdir -p libhtp | |
14 | (cd libhtp && | |
15 | curl -Ls "$2" | tar zxf - --strip-components=1) | |
16 | ;; | |
17 | *) | |
18 | echo "error: unknown requirement: $1" | |
19 | ;; | |
20 | esac | |
21 | done < ./requirements.txt |