Skip to content

Commit

Permalink
Fix probe-cli download script to parse _386 in filename
Browse files Browse the repository at this point in the history
  • Loading branch information
sarathms committed Feb 3, 2021
1 parent fb6378d commit 1777012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/download-bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const download = () => {
}
const [sum, tarPath] = line.split(' ')
checksums[tarPath] = sum
const re = /^ooniprobe_v[0-9.a-z-]+_((darwin|linux|windows)_amd64).(tar.gz|zip)$/
const re = /^ooniprobe_v[0-9.a-z-]+_((darwin|linux|windows)(_amd64|_386)).(tar.gz|zip)$/
const result = tarPath.match(re)
if (!result) {
throw Error(`The path '${tarPath}' does not match our expectations`)
Expand Down

0 comments on commit 1777012

Please sign in to comment.