Use a case-statement instead of multiple (separate even) if-statements.

This commit is contained in:
Devin Teske 2013-06-04 03:38:16 +00:00
parent b988241f05
commit 97142e6ae7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251363

View File

@ -222,13 +222,16 @@ f_dialog_menu_media_options()
if [ $retval -eq $SUCCESS ]; then
options=$( eval f_dialog_menutag2item \"\$tag\" \
$supported_media )
[ "$options" = "$opt_none" ] && options=
if [ "$options" = "$opt_cust" ]; then
case "$options" in
"$opt_none")
options=
;;
"$opt_cust")
options="$_options"
f_dialog_input_options "$interface"
retval=$?
fi
;;
esac
fi
return $retval