Skip to content

Commit

Permalink
Fix mktemp on some platform
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
rs committed Nov 19, 2021
1 parent 70b9628 commit 40d0e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ main() {
RELEASE=$(get_release)

url="https://github.com/nextdns/diag/releases/download/v${RELEASE}/diag_${RELEASE}_${GOOS}_${GOARCH}"
bin_path=$(mktemp -t nextdns-diag-XXX)
bin_path=$(mktemp -t nextdns-diag-XXXXXX)
trap cleanup EXIT
if ! curl -sfL "$url" > "$bin_path"; then
echo "Failed to download binary"
Expand Down

0 comments on commit 40d0e7d

Please sign in to comment.