Skip to content

Commit

Permalink
Minor fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed Feb 5, 2018
1 parent b1106ae commit 10b1aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get-hpack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ hpack="$dst/hpack"
mkdir -p "$dst"

os="${1:-${TRAVIS_OS_NAME:-linux}}"
url=$(curl -s https://api.github.com/repos/sol/hpack/releases/latest | jq -r ".assets[] | select(.name | test(\"$os\")) | .browser_download_url")
url=$(curl -sSL https://api.github.com/repos/sol/hpack/releases/latest | jq -r ".assets[] | select(.name | test(\"$os\")) | .browser_download_url")

echo "Downloading $url"

curl -sL "$url" | gunzip > "$hpack.tmp"
curl -sSL "$url" | gunzip > "$hpack.tmp"
chmod +x "$hpack.tmp"
mv "$hpack.tmp" "$hpack"

Expand Down

0 comments on commit 10b1aa2

Please sign in to comment.