Skip to content

Commit

Permalink
Fix the e2e test script check for Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafal Korepta committed Feb 8, 2023
1 parent 25cab8a commit 3093130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ arch_name="$(uname -m)"

if [[ $arch_name == "arm64" ]]; then
curl -L https://github.com/kudobuilder/kuttl/releases/download/v${KUTTL_VERSION}/kubectl-kuttl_${KUTTL_VERSION}_darwin_arm64 --output kuttl
elif [[ $arch_name == "Darwin" ]]; then
elif [[ $(uname -s) == "Darwin" ]]; then
curl -L https://github.com/kudobuilder/kuttl/releases/download/v${KUTTL_VERSION}/kubectl-kuttl_${KUTTL_VERSION}_darwin_x86_64 --output kuttl
elif [[ "$(expr substr $(uname -s) 1 5)" == "Linux" ]]; then
curl -L https://github.com/kudobuilder/kuttl/releases/download/v${KUTTL_VERSION}/kubectl-kuttl_${KUTTL_VERSION}_linux_x86_64 --output kuttl
Expand Down

0 comments on commit 3093130

Please sign in to comment.