From 855aafb9b8e79564811b1174905092403d2146fc Mon Sep 17 00:00:00 2001 From: Pierre Mavro Date: Sun, 23 Feb 2020 22:55:50 +0100 Subject: [PATCH] fix: delete existing temporary tgz if present to avoid silence failure --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index c67ded1c..4f3b455f 100644 --- a/index.html +++ b/index.html @@ -13,6 +13,7 @@ latest_tag=$(curl --silent "https://api.github.com/repos/$repo/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') version=$(echo $latest_tag | sed 's/^v//') +test -f $output_tgz && rm -f $output_tgz curl -o $output_tgz -sOL "https://github.com/${repo}/releases/download/${latest_tag}/qovery-cli_${version}_${os}_amd64.tar.gz" echo "Uncompressing qovery binary in $dest_binary directory"