We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7354ef8 commit 29543d0Copy full SHA for 29543d0
geoip-shell-fetch.sh
@@ -232,7 +232,7 @@ get_src_dates_maxmind() {
232
parse_ripe_json() {
233
in_file="$1" out_file="$2" family_parse="$3"
234
tr ',' '\n' < "$in_file" |
235
- sed -n "/\"${family_parse}\":\[/{s/.*\[//;:1 /]/{s/].*//;p;q;};p;n;b1}" |
+ sed -n "/\"${family_parse}\":\[/{s/.*\[//;:1 /]/{s/].*//;p;q;};p;n;b1;}" |
236
grep "^[^\"]*\"[^\"][^\"]*\"[^\"]*$" |
237
cut -d \" -f2 > "$out_file" && [ -s "$out_file" ] &&
238
return 0
0 commit comments