Selaa lähdekoodia

Add explicit code to handle older versions of Docker, too

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
Tianon Gravi 9 vuotta sitten
vanhempi
commit
e84a303543
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      hack/make/.detect-daemon-osarch

+ 3 - 0
hack/make/.detect-daemon-osarch

@@ -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 }
 	'
 }