From 5902bc010e6453fe88a0f5c7ed7b46126b814d7d Mon Sep 17 00:00:00 2001 From: Andrei Pohilko Date: Tue, 17 Jan 2023 10:44:49 +0000 Subject: [PATCH] remove undesired output from version check --- scripts/install_plugin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_plugin.sh b/scripts/install_plugin.sh index 8e57dc9..353e51e 100755 --- a/scripts/install_plugin.sh +++ b/scripts/install_plugin.sh @@ -15,7 +15,7 @@ if [ -n "${HELM_PUSH_PLUGIN_NO_INSTALL_HOOK}" ]; then exit 0 fi -version="$(curl -X GET ${api_repo} | grep '\"name\": "v.*\"' | cut -d 'v' -f 2 | cut -d '"' -f 1)" +version="$(curl -s ${api_repo} | grep '\"name\": "v.*\"' | cut -d 'v' -f 2 | cut -d '"' -f 1)" echo Tried to autodetect latest version: $version [ -z "$version" ] && { version="$(cat plugin.yaml | grep "version" | cut -d '"' -f 2)"