From 331a41a8da28cf7e86fb155dfc3df583c98075fc Mon Sep 17 00:00:00 2001 From: Pranav Singh Date: Sat, 23 Nov 2024 15:53:45 +0530 Subject: [PATCH] fix logs; add update support Signed-off-by: Pranav Singh --- install-binary.sh | 7 +------ plugin.yaml | 3 +-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/install-binary.sh b/install-binary.sh index c247fa4951..0058013e19 100755 --- a/install-binary.sh +++ b/install-binary.sh @@ -25,7 +25,6 @@ if [ "$SKIP_BIN_INSTALL" = "1" ]; then exit fi - # initArch discovers the architecture for this system. initArch() { ARCH=$(uname -m) @@ -66,7 +65,6 @@ verifySupported() { supported+="${os}-${arch}\n" done done - echo "supported: ${supported[@]}" if ! echo "${supported}" | grep -q "${OS}-${ARCH}"; then echo "No prebuild binary for ${OS}-${ARCH}." exit 1 @@ -98,10 +96,8 @@ downloadFile() { PLUGIN_TMP_FILE="/tmp/${PROJECT_NAME}.tar.gz" echo "Downloading $DOWNLOAD_URL" if type "curl" > /dev/null; then - echo "curl -L $DOWNLOAD_URL -o $PLUGIN_TMP_FILE" curl -L "$DOWNLOAD_URL" -o "$PLUGIN_TMP_FILE" elif type "wget" > /dev/null; then - echo "wget -q -O $PLUGIN_TMP_FILE $DOWNLOAD_URL" wget -q -O "$PLUGIN_TMP_FILE" "$DOWNLOAD_URL" fi } @@ -143,8 +139,7 @@ getDownloadURL downloadFile installFile echo -echo "helm-kanvas-snapshot is installed." -echo "${HELM_PLUGIN_DIR}/bin/helm-kanvas-snapshot" -h +echo "helm-kanvas-snapshot is installed at ${HELM_PLUGIN_DIR}/bin/helm-kanvas-snapshot" echo echo "See https://github.com/$PROJECT_GH#readme for more information on getting started." diff --git a/plugin.yaml b/plugin.yaml index 455d5cb0f3..67965cd6ef 100644 --- a/plugin.yaml +++ b/plugin.yaml @@ -6,9 +6,8 @@ useTunnel: true command: "$HELM_PLUGIN_DIR/bin/helm-kanvas-snapshot" hooks: install: | - echo "Snapshot plugin installed." $HELM_PLUGIN_DIR/install-binary.sh update: | - echo "Snapshot plugin updated." + $HELM_PLUGIN_DIR/install-binary.sh uninstall: | echo "Snapshot plugin uninstalled."