Explorar o código

Fix linux script parsing version to check if we have the new CLI already installed or not (need to keep azure check for users who have the previous version installed :/ )

Signed-off-by: Guillaume Tardif <[email protected]>
Guillaume Tardif %!s(int64=5) %!d(string=hai) anos
pai
achega
1bb1499675
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      scripts/install/install_linux.sh

+ 6 - 2
scripts/install/install_linux.sh

@@ -33,10 +33,14 @@ manual_install() {
 }
 
 is_new_cli() {
-	azure_version_str="$($1 version 2>/dev/null | grep 'Azure' || true)"
-	if [ -n "$azure_version_str" ]; then
+	cloud_version_str="$($1 version 2>/dev/null | grep 'Cloud integration' || true)"
+	if [ -n "$cloud_version_str" ]; then
 		echo 1
 	else
+        azure_version_str="$($1 version 2>/dev/null | grep 'Azure' || true)"
+	    if [ -n "$azure_version_str" ]; then
+		    echo 1
+        fi
 		echo 0
 	fi
 }