Skip to content

Commit

Permalink
fix: use more portable "mktemp" for temp file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
szkiba committed Sep 30, 2024
1 parent 575a26f commit 6d3915a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/extension-registry-changed
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ EOF
scriptdir="$(dirname "$(readlink -f "$0")")"
docfile="$scriptdir/../docs/sources/next/extensions/explore.md"

tmpfile=/tmp/explore.$$
tmpfile="$(mktemp)"

generate_extension_list_partial > $tmpfile
replace_extension_list_partial "$docfile" $tmpfile
generate_extension_list_partial > "$tmpfile"
replace_extension_list_partial "$docfile" "$tmpfile"

rm -f $tmpfile
rm -f "$tmpfile"

0 comments on commit 6d3915a

Please sign in to comment.