mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
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 <guillaume.tardif@docker.com>
This commit is contained in:
parent
9c07a7b3ad
commit
1bb1499675
@ -33,10 +33,14 @@ manual_install() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
is_new_cli() {
|
is_new_cli() {
|
||||||
azure_version_str="$($1 version 2>/dev/null | grep 'Azure' || true)"
|
cloud_version_str="$($1 version 2>/dev/null | grep 'Cloud integration' || true)"
|
||||||
if [ -n "$azure_version_str" ]; then
|
if [ -n "$cloud_version_str" ]; then
|
||||||
echo 1
|
echo 1
|
||||||
else
|
else
|
||||||
|
azure_version_str="$($1 version 2>/dev/null | grep 'Azure' || true)"
|
||||||
|
if [ -n "$azure_version_str" ]; then
|
||||||
|
echo 1
|
||||||
|
fi
|
||||||
echo 0
|
echo 0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user