check-lxdialog.sh: use mktemp for temporary file
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 21 Jun 2010 20:31:12 +0000 (22:31 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 21 Jun 2010 21:02:24 +0000 (23:02 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/config/lxdialog/check-lxdialog.sh

index fcef0f59d5539c61499e70d2566ccc0c492da90a..361866f68e7853ef56dd270e6d65e93edbfa8a95 100644 (file)
@@ -31,7 +31,7 @@ ccflags()
 }
 
 # Temp file, try to clean up after us
-tmp=.lxdialog.tmp
+tmp=$(mktemp)
 trap "rm -f $tmp" 0 1 2 3 15
 
 # Check if we can link to ncurses