Skip to content

Commit

Permalink
fix(build): ensure unique tmp files for gon script
Browse files Browse the repository at this point in the history
Use the bash `$RANDOM` variable instead of mktemp.
  • Loading branch information
jooola committed Oct 13, 2023
1 parent 8e4cd29 commit c1835fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/gon.sh
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 c1835fe

Please sign in to comment.