Make some obvious consolidations in local declaration for readability.
This commit is contained in:
parent
ad505a174d
commit
64cf1a541d
@ -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