Skip to content

Commit

Permalink
️️⚡️ BUMP ⚡️ download 11(+)
Browse files Browse the repository at this point in the history
  • Loading branch information
borestad committed May 20, 2024
1 parent 2acd482 commit aaabfb9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bitbucket/download
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

cd "$(dirname $0)"

name=bitbucket
curl -sL --fail https://ip-ranges.atlassian.com -o $name.json.tmp || exit 0

jq .items $name.json.tmp | gron | grep cidr | sponge $name.list.tmp

grepip < $name.list.tmp | iprange >| $name.ipv4
grepip6 < $name.list.tmp | cidr-merger >| $name.ipv6

0 comments on commit aaabfb9

Please sign in to comment.