Make mktemp invocations portable.

This commit is contained in:
Grégoire Sutre committed 2010-10-18 22:50:01 +02:00
1 parent 30385e717e
commit b65ea15514
9 files changed
+46 -38

No files matched your search

+1 -1
View File
@@ -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 } }'