Commit d6ebde1
committed
dockerfiles/build.sh: fix buildx detection
`docker <subcommand> --help` cannot be used to detect whether a sub
command is available because it exits with 0 no matter if the sub
command exists or not.
Use `docker buildx version` as a test for buildx support instead.
Fixes: 17765c7 ("dockerfiles: support for docker/podman buildx")
Reported-by: Sebastian Groß <[email protected]>
Signed-off-by: Bastian Krause <[email protected]>1 parent a8b6ab3 commit d6ebde1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments