From c1835fe079eb40df65d11d20e7d871ed98a2b9e8 Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 13 Oct 2023 10:16:53 +0200 Subject: [PATCH] fix(build): ensure unique tmp files for gon script Use the bash `$RANDOM` variable instead of mktemp. --- script/gon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/gon.sh b/script/gon.sh index 2e3194e8..751a79ba 100644 --- a/script/gon.sh +++ b/script/gon.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -set -eu +set -eu -o posix # Only sign on releasing if [[ "${GITHUB_REF_TYPE:-}" != "tag" ]]; then @@ -9,7 +9,7 @@ fi BINARY_PATH="$1" -GON_CONFIG=$(mktemp gon_XXXX.json) +GON_CONFIG="gon_$RANDOM.json" cleanup() { rm -f "$GON_CONFIG" }