From 6feb097b24908c9c8be3f252ade7c7f0c507ff15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Er=C3=A8be=20-=20Romain=20Gerard?= Date: Tue, 17 Dec 2024 10:50:08 +0100 Subject: [PATCH] Update index.html --- index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index c88314e2..14f51127 100644 --- a/index.html +++ b/index.html @@ -38,7 +38,12 @@ curl -o $output_tgz -sOL "https://github.com/${repo}/releases/download/${latest_tag}/qovery-cli_${version}_${os}_${arch}.tar.gz" echo "[+] Uncompressing qovery binary in $dest_binary directory (sudo permissions are required)" -sudo tar -xzf $output_tgz -C $dest_binary qovery +if [ "$EUID" -ne 0 ] +then + sudo tar -xzf $output_tgz -C $dest_binary qovery +else + tar -xzf $output_tgz -C $dest_binary qovery +fi rm -f $output_tgz echo -e "\nQovery CLI is installed, you can now use 'qovery' command line"