X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fclass%2F40-parse-profiles.sh;h=0fed6ee25c633e0d284ff5459874a11849033948;hb=79cd04733bf570db299ef09195c498a63f3f3fd5;hp=2e58bc35506f6523e2e1983da8253fcbc9c3d74c;hpb=7024f2155d8d5e4754d5c1ce0ccf8352149f81cd;p=automated-distro-installer diff --git a/fai/config/class/40-parse-profiles.sh b/fai/config/class/40-parse-profiles.sh index 2e58bc3..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 @@ -15,8 +14,8 @@ 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