Skip to content

Commit

Permalink
fix(build): ensure unique tmp files for gon script (#558)
Browse files Browse the repository at this point in the history
Release-As: 1.38.2-rc.0
  • Loading branch information
jooola committed Oct 13, 2023
1 parent 54b8b05 commit c20a78b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/gon.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -eu
set -eu -o posix

# Only sign on releasing
if [[ "${GITHUB_REF_TYPE:-}" != "tag" ]]; then
Expand All @@ -9,7 +9,7 @@ fi

BINARY_PATH="$1"

GON_CONFIG=$(mktemp gon_XXXX.json)
GON_CONFIG="gon_$RANDOM.json"
cleanup() {
rm -f "$GON_CONFIG"
}
Expand Down

0 comments on commit c20a78b

Please sign in to comment.