From dbb915a5d1b35329d17f242ba0408a10bc453231 Mon Sep 17 00:00:00 2001 From: Miroslav Hadzhiev Date: Sun, 25 Sep 2022 19:21:15 +0300 Subject: [PATCH] fixes for helmfile install --- bin/setup.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/setup.sh b/bin/setup.sh index b83f1e6..36abbe2 100644 --- a/bin/setup.sh +++ b/bin/setup.sh @@ -119,9 +119,10 @@ fi if ! `"$EXEC_DIR"/helmfile -v 2>/dev/null | grep -q "$HELMFILE_VER"` ; then if ! `"$CACHE_DIR"/helmfile -v 2>/dev/null | grep -q "$HELMFILE_VER"` ; then echo -e "\n${LIGHT_GREEN}Downloading Helmfile binary...${NC}" && \ - curl -L https://github.com/helmfile/helmfile/releases/download/v"$HELMFILE_VER"/helmfile_"$HELMFILE_VER"_linux_amd64.tar.gz -o "$CACHE_DIR"/helmfile-"$HELMFILE_VER" && \ - chmod +x "$CACHE_DIR"/helmfile-"$HELMFILE_VER" - yes | cp "$CACHE_DIR"/helmfile-"$HELMFILE_VER" "$CACHE_DIR"/helmfile + curl -L https://github.com/helmfile/helmfile/releases/download/v"$HELMFILE_VER"/helmfile_"$HELMFILE_VER"_linux_amd64.tar.gz -o "$CACHE_DIR"/helmfile-"$HELMFILE_VER".tar.gz && \ + tar xf "$CACHE_DIR"/helmfile-"$HELMFILE_VER".tar.gz -C "$CACHE_DIR" && \ + chmod +x "$CACHE_DIR"/helmfile && \ + yes | cp "$CACHE_DIR"/helmfile "$CACHE_DIR"/helmfile-"$HELMFILE_VER" else yes | cp "$CACHE_DIR"/helmfile-"$HELMFILE_VER" "$CACHE_DIR"/helmfile fi