Skip to content

Commit 0c1646e

Browse files
authored
Merge pull request #81 from gomesjason/main
Update provenance check for changed message
2 parents bd49a51 + d956e3f commit 0c1646e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hack/provenance

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
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
3434
else

0 commit comments

Comments
 (0)