Skip to content

Commit

Permalink
add classes to help, unset all variables at the end, change title
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Nov 5, 2015
1 parent 969450b commit f938b1f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions examples/simple/class/40-parse-profiles.sh
Expand Up @@ -137,16 +137,17 @@ for i in "${list[@]}"; do
par+=("${ardesc[${i}]}")
par+=("${arshort[${i}]}")
echo "Name: ${i}" >> $tempfile2
echo -e ${arlong[${i}]} "\n" >> $tempfile2
echo -e ${arlong[${i}]} >> $tempfile2
echo -e "Classes: " ${arclasses[${i}]} "\n" >> $tempfile2
done
unset i

while true; do

dialog --clear --item-help --title "Select your FAI profile" --help-button \
dialog --clear --item-help --title "FAI - Fully Automatic Installation" --help-button \
--default-item "$default" \
--menu "\nThe profile will define a list of classes,\nwhich are used by FAI.\n\n\n\
Choose the FAI profile now:" 15 70 0 "${par[@]}" 2> $tempfile 1>/dev/console
--menu "\nSelect your FAI profile\n\nThe profile will define a list of classes,\n\
which are used by FAI.\n\n\n" 15 70 0 "${par[@]}" 2> $tempfile 1>/dev/console

_retval=$?
case $_retval in
Expand All @@ -161,3 +162,4 @@ while true; do
esac

done
unset par ardesc arshort arlong arclasses list tempfile tempfile2 _parsed _retval line

0 comments on commit f938b1f

Please sign in to comment.