From fa6a38c50f67164d4a59f93d7103a302b840d870 Mon Sep 17 00:00:00 2001 From: Andrei Pohilko Date: Mon, 26 Sep 2022 14:33:10 +0100 Subject: [PATCH] Update install script --- scripts/install_plugin.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install_plugin.sh b/scripts/install_plugin.sh index 98bba1f..5412920 100755 --- a/scripts/install_plugin.sh +++ b/scripts/install_plugin.sh @@ -41,9 +41,9 @@ esac if [ "$(uname)" = "Darwin" ]; then - url="${repo}/releases/download/v${version}/${name}_${version}_darwin_${arch}.tar.gz" + url="${repo}/releases/download/v${version}/${name}_${version}_Darwin_${arch}.tar.gz" elif [ "$(uname)" = "Linux" ] ; then - url="${repo}/releases/download/v${version}/${name}_${version}_linux_${arch}.tar.gz" + url="${repo}/releases/download/v${version}/${name}_${version}_Linux_${arch}.tar.gz" else url="${repo}/releases/download/v${version}/${name}_${version}_windows_${arch}.tar.gz" fi @@ -55,7 +55,7 @@ mkdir -p "releases/v${version}" # Download with curl if possible. if [ -x "$(which curl 2>/dev/null)" ]; then - curl -sSL "${url}" -o "releases/v${version}.tar.gz" + curl --fail -sSL "${url}" -o "releases/v${version}.tar.gz" else wget -q "${url}" -O "releases/v${version}.tar.gz" fi