Skip to content

Commit

Permalink
chore(smoke): handle uppercase header in release downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
JackuB committed Jan 12, 2021
1 parent 91f9010 commit c9b214e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
if: ${{ matrix.snyk_install_method == 'binary' && matrix.os != 'windows' }}
run: |
echo "install snyk with binary"
export latest_version=$(curl -Is "https://github.com/snyk/snyk/releases/latest" | grep location | sed s#.*tag/##g | tr -d "\r")
export latest_version=$(curl -Is "https://github.com/snyk/snyk/releases/latest" | grep -i location | sed s#.*tag/##g | tr -d "\r")
echo "latest_version: ${latest_version}"
snyk_cli_dl_linux="https://github.com/snyk/snyk/releases/download/${latest_version}/${{ matrix.snyk_cli_dl_file }}"
echo "snyk_cli_dl_linux: ${snyk_cli_dl_linux}"
Expand Down
2 changes: 1 addition & 1 deletion test/smoke/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

echo "install snyk with binary"
export latest_version=$(curl -Is "https://github.com/snyk/snyk/releases/latest" | grep location | sed s#.*tag/##g | tr -d "\r")
export latest_version=$(curl -Is "https://github.com/snyk/snyk/releases/latest" | grep -i location | sed s#.*tag/##g | tr -d "\r")
echo "latest_version: ${latest_version}"
snyk_cli_dl_linux="https://github.com/snyk/snyk/releases/download/${latest_version}/snyk-alpine"
curl -Lo ./snyk-cli $snyk_cli_dl_linux
Expand Down
2 changes: 1 addition & 1 deletion test/smoke/install-snyk-binary-win.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
echo "install-snyk-binary-win.sh"

export latest_version=$(curl -Is "https://github.com/snyk/snyk/releases/latest" | grep location | sed s#.*tag/##g | tr -d "\r")
export latest_version=$(curl -Is "https://github.com/snyk/snyk/releases/latest" | grep -i location | sed s#.*tag/##g | tr -d "\r")
echo "latest_version: ${latest_version}"
snyk_cli_dl="https://github.com/snyk/snyk/releases/download/${latest_version}/snyk-win.exe"
echo "snyk_cli_dl: ${snyk_cli_dl}"
Expand Down

0 comments on commit c9b214e

Please sign in to comment.