File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2626# Thus, this script echos back the flag `--provenance=false` if and only
2727# if the local buildx installation supports it. If not, it exits silently.
2828
29- BUILDX_TEST=` docker buildx build --provenance=false 2>&1 `
30- if [[ " ${BUILDX_TEST} " == * " See 'docker buildx build --help'. " * ]]; then
31- if [[ " ${BUILDX_TEST} " == * " requires exactly 1 argument" * ]] && ! docker buildx inspect | grep -qE " ^Driver:\s*docker$" ; then
29+ BUILDX_TEST=$( docker buildx build --provenance=false 2>&1 )
30+ if [[ " ${BUILDX_TEST} " == * " 'docker buildx build --help'" * ]]; then
31+ if [[ " ${BUILDX_TEST} " == * " 1 argument" * ]] && ! docker buildx inspect | grep -qE " ^Driver:\s*docker$" ; then
3232 echo " --provenance=false"
3333 fi
3434else
You can’t perform that action at this time.
0 commit comments