Merge pull request #257 from jhoblitt/bugfix/mktemp
fix dist.sh compatibility with GNU coreutils mktemp
This commit is contained in:
commit
fe143ca9e8
2
dist.sh
2
dist.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user