mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add explicit code to handle older versions of Docker, too
Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
This commit is contained in:
parent
a667cd88c3
commit
e84a303543
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,9 @@ docker-version-osarch() {
|
|||
$1 ~ /^(Client|Server):$/ { section = 0 }
|
||||
$1 == "'"$target"':" { section = 1; next }
|
||||
section && $1 == "OS/Arch:" { print $2 }
|
||||
|
||||
# old versions of Docker
|
||||
$1 == "OS/Arch" && $2 == "('"${target,,}"'):" { print $3 }
|
||||
'
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue