git.iko.soy/typeable/oauth2-proxy
on master help sign in
fix dist.sh compatibility with GNU coreutils mktemp

Resolves this error: mktemp: too few X's in template ‘oauth2_proxy’

commit0a7a90b7a8fed07581add6f24aa6b7a113eb8713 authorJoshua Hoblitt <josh@hoblitt.com> dateThu 26 May 2016, 09:34 (10 years ago) parent62c80df
1 file changed+1−1
dist.sh+1−1
dist.sh+1−1
@@ -20,7 +20,7 @@ echo "... running tests"
2020
2121for os in windows linux darwin; do
2222 echo "... building v$version for $os/$arch"
23− BUILD=$(mktemp -d -t oauth2_proxy)
23+ BUILD=$(mktemp -d ${TMPDIR:-/tmp}/oauth2_proxy.XXXXXX)
2424 TARGET="oauth2_proxy-$version.$os-$arch.$goversion"
2525 GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -o $BUILD/$TARGET/oauth2_proxy || exit 1
2626 pushd $BUILD