Skip to content

Commit

Permalink
get random value fro bash instead of mktemp
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Oct 13, 2023
1 parent e0901d2 commit 907b26b
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 907b26b

Please sign in to comment.