]> git.proxmox.com Git - grub2.git/blobdiff - tests/grub_script_blockarg.in
bump version to 2.06-13+pmx2
[grub2.git] / tests / grub_script_blockarg.in
index 783cee8e06ea7a54b2fec8c30ab12cbc9e040660..6ea9b8c3d87cb2e9fc5693da93cb9885cfdd20e2 100644 (file)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! @BUILD_SHEBANG@
 
 # Run GRUB script in a Qemu instance
 # Copyright (C) 2010  Free Software Foundation, Inc.
@@ -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 } }'