mirror of https://github.com/docker/compose.git
Merge pull request #615 from docker/fix_linux_install
Fix linux install script parsing version
This commit is contained in:
commit
4ce1fafc0a
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue