Skip to content

Commit c68563a

Browse files
committed
Fix "update.sh"
1 parent 8ff3f12 commit c68563a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

update.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@ declare -A dpkgArchToBashbrew=(
3030
[s390x]='s390x'
3131
)
3232

33-
# https://github.com/mkevenaar/chocolatey-packages/blob/8c38398f695e86c55793ee9d61f4e541a25ce0be/automatic/mongodb.install/update.ps1#L15-L31
3433
communityVersions="$(
35-
curl -fsSL 'https://www.mongodb.com/download-center/community' \
36-
| grep -oiE '"server-data">window[.]__serverData = {(.+?)}<' \
37-
| cut -d= -f2- | cut -d'<' -f1 \
38-
| jq -c '.community.versions[]'
34+
curl -fsSL 'http://downloads.mongodb.org.s3.amazonaws.com/current.json' \
35+
| jq -c '.versions[]'
3936
)"
4037

4138
for version in "${versions[@]}"; do

0 commit comments

Comments
 (0)