Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
feat: add OS environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpollet committed Sep 22, 2021
1 parent 8324f1c commit 4aa9117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PROJECT_NAME="helm-unittest"

downloadFile() {
# Always use version from plugin.yaml for the download url
DOWNLOAD_URL="https://github.com/rancher/helm-unittest/releases/download/$CATTLE_HELM_UNITTEST_VERSION/$PROJECT_NAME-linux-$ARCH.tgz"
DOWNLOAD_URL="https://github.com/rancher/helm-unittest/releases/download/$CATTLE_HELM_UNITTEST_VERSION/$PROJECT_NAME-${OS:-linux}-$ARCH.tgz"
PLUGIN_TMP_FILE="/tmp/$PROJECT_NAME.tgz"
echo "Downloading $DOWNLOAD_URL"
curl -L "$DOWNLOAD_URL" -o "$PLUGIN_TMP_FILE"
Expand Down

0 comments on commit 4aa9117

Please sign in to comment.