From 0a7a90b7a8fed07581add6f24aa6b7a113eb8713 Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Thu, 26 May 2016 09:34:58 -0700 Subject: [PATCH] fix dist.sh compatibility with GNU coreutils mktemp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves this error: mktemp: too few X's in template ‘oauth2_proxy’ --- dist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist.sh b/dist.sh index e069e19..4d58ebf 100755 --- a/dist.sh +++ b/dist.sh @@ -20,7 +20,7 @@ echo "... running tests" for os in windows linux darwin; do echo "... building v$version for $os/$arch" - BUILD=$(mktemp -d -t oauth2_proxy) + BUILD=$(mktemp -d ${TMPDIR:-/tmp}/oauth2_proxy.XXXXXX) TARGET="oauth2_proxy-$version.$os-$arch.$goversion" GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -o $BUILD/$TARGET/oauth2_proxy || exit 1 pushd $BUILD