mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 01:29:27 +00:00
Make mktemp invocations portable.
This commit is contained in:
1 parent
30385e717e
commit
b65ea15514
9 files changed
+46
-38
No files matched your search
@@ -27,7 +27,7 @@ cmd='test_blockarg { true }'
|
||||
v=`echo "$cmd" | @builddir@/grub-shell`
|
||||
error_if_not "$v" '{ true }'
|
||||
|
||||
tmp=`mktemp`
|
||||
tmp=`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 1
|
||||
cmd='test_blockarg { test_blockarg { true } }'
|
||||
echo "$cmd" | @builddir@/grub-shell >$tmp
|
||||
error_if_not "`head -n1 $tmp|tail -n1`" '{ test_blockarg { true } }'
|
||||
|
||||
Reference in new issue
Block a user