Skip to content

Commit

Permalink
dist.sh: cross-platform mktemp usage
Browse files Browse the repository at this point in the history
  • Loading branch information
soar authored and ploxiln committed Nov 5, 2017
1 parent 5e384d6 commit 346c907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ echo "... running tests"

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

0 comments on commit 346c907

Please sign in to comment.