From 8c3e15beda1d8e68010e55ee03dc8c3f66b082ad Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Thu, 28 Dec 2017 00:17:42 -0800 Subject: [PATCH] hack: fix scripts for macos Signed-off-by: Tonis Tiigi --- hack/lint | 2 +- hack/test | 2 +- hack/update-vendor | 2 +- hack/validate-vendor | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hack/lint b/hack/lint index a01ebce3..a0fe7e86 100755 --- a/hack/lint +++ b/hack/lint @@ -2,7 +2,7 @@ set -eu -o pipefail -x -iidfile=$(mktemp --tmpdir docker-iidfile.XXXXXXXXXX) +iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX) docker build --iidfile $iidfile -f ./hack/dockerfiles/lint.Dockerfile --force-rm . iid=$(cat $iidfile) docker run $iid gometalinter --config=gometalinter.json ./... diff --git a/hack/test b/hack/test index 3ca21201..2c877045 100755 --- a/hack/test +++ b/hack/test @@ -2,7 +2,7 @@ set -eu -o pipefail -x -iidfile=$(mktemp --tmpdir docker-iidfile.XXXXXXXXXX) +iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX) docker build --iidfile $iidfile --target integration-tests -f ./hack/dockerfiles/test.Dockerfile --force-rm . diff --git a/hack/update-vendor b/hack/update-vendor index 3e5eadac..882577c5 100755 --- a/hack/update-vendor +++ b/hack/update-vendor @@ -2,7 +2,7 @@ set -eu -o pipefail -x -iidfile=$(mktemp --tmpdir docker-iidfile.XXXXXXXXXX) +iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX) docker build --build-arg VNDR_VERSION=48ac2669d9d1bcacd3163650ef911edca2ec3b42 --iidfile $iidfile -f ./hack/dockerfiles/vendor.Dockerfile --force-rm . iid=$(cat $iidfile) cid=$(docker create $iid noop) diff --git a/hack/validate-vendor b/hack/validate-vendor index 1367d449..19eecbca 100755 --- a/hack/validate-vendor +++ b/hack/validate-vendor @@ -2,7 +2,7 @@ set -eu -o pipefail -x -iidfile=$(mktemp --tmpdir docker-iidfile.XXXXXXXXXX) +iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX) docker build --build-arg VNDR_VERSION=48ac2669d9d1bcacd3163650ef911edca2ec3b42 --iidfile $iidfile -f ./hack/dockerfiles/vendor.Dockerfile --force-rm . iid=$(cat $iidfile) diffs="$(docker run $iid git status --porcelain -- vendor 2>/dev/null)"