update to 31b795ca71189b326b80666076398f31aea4f2be
[automated-distro-installer] / fai / config / class / 40-parse-profiles.sh
index 7ed30554210555a43de897c50d3418882c7691a8..0fed6ee25c633e0d284ff5459874a11849033948 100755 (executable)
@@ -1,4 +1,3 @@
-
 #! /bin/bash
 
 # parse *.profile and build a curses menu, so the user can select a profile
@@ -9,14 +8,14 @@
 if [ X$FAI_ACTION = Xinstall -o X$FAI_ACTION = Xdirinstall -o X$FAI_ACTION = X ]; then
     :
 else
-    return
+    return 0
 fi
 
 [ "$flag_menu" ] || return 0
 
 out=$(tty)
-tempfile=`(tempfile) 2>/dev/null`
-tempfile2=`(tempfile) 2>/dev/null`
+tempfile=$(mktemp)
+tempfile2=$(mktemp)
 trap "rm -f $tempfile $tempfile2" EXIT INT QUIT
 
 # declare the data structure, use associative arrays