svn commit: r251363 - head/usr.sbin/bsdconfig/networking/share
Devin Teske
dteske at FreeBSD.org
Tue Jun 4 03:38:17 UTC 2013
Author: dteske
Date: Tue Jun 4 03:38:16 2013
New Revision: 251363
URL: http://svnweb.freebsd.org/changeset/base/251363
Log:
Use a case-statement instead of multiple (separate even) if-statements.
Modified:
head/usr.sbin/bsdconfig/networking/share/media.subr
Modified: head/usr.sbin/bsdconfig/networking/share/media.subr
==============================================================================
--- head/usr.sbin/bsdconfig/networking/share/media.subr Tue Jun 4 03:37:35 2013 (r251362)
+++ head/usr.sbin/bsdconfig/networking/share/media.subr Tue Jun 4 03:38:16 2013 (r251363)
@@ -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
More information about the svn-src-head
mailing list