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"