From 1bb14996757742e96f60e40aa9868804ac7a088c Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Mon, 14 Sep 2020 16:59:56 +0200 Subject: [PATCH] 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 --- scripts/install/install_linux.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/install/install_linux.sh b/scripts/install/install_linux.sh index 8b00c16b9..e11e7a0c3 100644 --- a/scripts/install/install_linux.sh +++ b/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 }