Skip to content

Commit 346c907

Browse files
soarploxiln
authored andcommitted
dist.sh: cross-platform mktemp usage
see nsqio#718 (comment)
1 parent 5e384d6 commit 346c907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ echo "... running tests"
3030

3131
for os in linux darwin freebsd windows; do
3232
echo "... building v$version for $os/$arch"
33-
BUILD=$(mktemp -d -t nsq)
33+
BUILD=$(mktemp -d ${TMPDIR:-/tmp}/nsq-XXXXX)
3434
TARGET="nsq-$version.$os-$arch.$goversion"
3535
GOOS=$os GOARCH=$arch CGO_ENABLED=0 \
3636
make DESTDIR=$BUILD PREFIX=/$TARGET GOFLAGS="$GOFLAGS" install

0 commit comments

Comments
 (0)