X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fclass%2F40-parse-profiles.sh;h=0fed6ee25c633e0d284ff5459874a11849033948;hb=7ade5e2c6113530c5f99cfc95880897fcb479f39;hp=7ed30554210555a43de897c50d3418882c7691a8;hpb=3bd65f0ca635f1349626c2393a4dd8a50df64f54;p=automated-distro-installer diff --git a/fai/config/class/40-parse-profiles.sh b/fai/config/class/40-parse-profiles.sh index 7ed3055..0fed6ee 100755 --- a/fai/config/class/40-parse-profiles.sh +++ b/fai/config/class/40-parse-profiles.sh @@ -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