Commit 210ceef8 by Mislav Marohnić

More portable invocation of `mktemp`

`mktemp -t ruby-patch`, although working on OS X, fails on Travis CI
with the message "too few X's in template".

https://travis-ci.org/sstephenson/ruby-build/builds/23436088
parent 1786cf75
...@@ -849,7 +849,7 @@ apply_ruby_patch() { ...@@ -849,7 +849,7 @@ apply_ruby_patch() {
local patchfile local patchfile
case "$1" in case "$1" in
ruby-* | jruby-* | rubinius-* ) ruby-* | jruby-* | rubinius-* )
patchfile="$(mktemp -t ruby-patch)" patchfile="$(mktemp "${TMP}/ruby-patch.XXXXXX")"
cat "${2:--}" >"$patchfile" cat "${2:--}" >"$patchfile"
local striplevel=0 local striplevel=0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment