Make some obvious consolidations in local declaration for readability.
This commit is contained in:
parent
51c41087d1
commit
c01472c194
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251270
@ -93,10 +93,9 @@ usage()
|
||||
#
|
||||
# Determine the maximum width of terminal/console
|
||||
#
|
||||
local max_size max_width
|
||||
max_size=$( stty size 2> /dev/null )
|
||||
local max_size="$( stty size 2> /dev/null )"
|
||||
: ${max_size:="24 80"}
|
||||
max_width="${max_size#*[$IFS]}"
|
||||
local max_width="${max_size#*[$IFS]}"
|
||||
f_dprintf "max_width=[%s]" "$max_width"
|
||||
|
||||
#
|
||||
|
@ -142,8 +142,7 @@ f_dialog_menu_netdev()
|
||||
#
|
||||
# Ask user to select an interface
|
||||
#
|
||||
local prompt
|
||||
prompt="$msg_select_network_interface"
|
||||
local prompt="$msg_select_network_interface"
|
||||
local height width rows
|
||||
eval f_dialog_menu_size height width rows \
|
||||
\"\$DIALOG_TITLE\" \
|
||||
|
Loading…
Reference in New Issue
Block a user