Merge pull request #257 from jhoblitt/bugfix/mktemp

fix dist.sh compatibility with GNU coreutils mktemp
This commit is contained in:
Jehiah Czebotar 2016-06-18 23:24:04 -04:00 committed by GitHub
commit fe143ca9e8

View File

@ -20,7 +20,7 @@ echo "... running tests"
for os in windows linux darwin; do for os in windows linux darwin; do
echo "... building v$version for $os/$arch" 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" TARGET="oauth2_proxy-$version.$os-$arch.$goversion"
GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -o $BUILD/$TARGET/oauth2_proxy || exit 1 GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -o $BUILD/$TARGET/oauth2_proxy || exit 1
pushd $BUILD pushd $BUILD