Skip to content

Commit 29543d0

Browse files
committed
fetch: fix ripe lists parsing with Busybox sed
1 parent 7354ef8 commit 29543d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geoip-shell-fetch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ get_src_dates_maxmind() {
232232
parse_ripe_json() {
233233
in_file="$1" out_file="$2" family_parse="$3"
234234
tr ',' '\n' < "$in_file" |
235-
sed -n "/\"${family_parse}\":\[/{s/.*\[//;:1 /]/{s/].*//;p;q;};p;n;b1}" |
235+
sed -n "/\"${family_parse}\":\[/{s/.*\[//;:1 /]/{s/].*//;p;q;};p;n;b1;}" |
236236
grep "^[^\"]*\"[^\"][^\"]*\"[^\"]*$" |
237237
cut -d \" -f2 > "$out_file" && [ -s "$out_file" ] &&
238238
return 0

0 commit comments

Comments
 (0)