From 4aa9117ef9a492d18f354baf91e9342ae8d13c0d Mon Sep 17 00:00:00 2001 From: kevinpollet Date: Thu, 24 Sep 2020 17:06:38 +0200 Subject: [PATCH] feat: add OS environment variable --- install-binary.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-binary.sh b/install-binary.sh index 2c67dfd1..e32cde40 100755 --- a/install-binary.sh +++ b/install-binary.sh @@ -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"