mirror of
https://github.com/apple/swift-atomics
synced 2026-11-27 04:44:21 +00:00
generate-sources: Adjust mktemp invocation for portability
This commit is contained in:
1 parent
34caa6fbd5
commit
56753d183f
1 file changed
+1
-1
+1
-1
@@ -31,7 +31,7 @@ lineDirective=''
|
||||
echo "Running gyb..."
|
||||
|
||||
# Create a temporary directory; remove it on exit.
|
||||
tmpdir="$(mktemp -d -t "$(basename "$0")")"
|
||||
tmpdir="$(mktemp -d "${TMPDIR:-/tmp}/$(basename "$0").XXXXXXXX")"
|
||||
trap "rm -rf \"$tmpdir\"" EXIT
|
||||
|
||||
# Run gyb on each gyb file in the source tree and put results in
|
||||
|
||||
Reference in new issue
Block a user