Remove pedanticism and consolidate some logic.
This commit is contained in:
parent
3b1f7d9e5d
commit
a0b423e1f7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252018
@ -367,19 +367,16 @@ while :; do
|
||||
[ "$( eval echo \$_${var}_delete )" ] || continue
|
||||
delete_vars="$delete_vars${delete_vars:+ }$var"
|
||||
done
|
||||
unset var # no longer needed
|
||||
if dialog_menu_confirm_delete $delete_vars; then
|
||||
f_dialog_title "$msg_info"
|
||||
f_dialog_info "$msg_deleting_selected_directives"
|
||||
f_dialog_title_restore
|
||||
for var in $delete_vars; do
|
||||
err=$( f_sysrc_delete $var 2>&1 )
|
||||
if [ $? -ne $SUCCESS ]; then
|
||||
if ! err=$( f_sysrc_delete $var 2>&1 ); then
|
||||
f_dialog_msgbox "$err\n"
|
||||
break
|
||||
fi
|
||||
done
|
||||
unset var # no longer needed
|
||||
dialog_create_main
|
||||
fi
|
||||
;;
|
||||
@ -388,7 +385,6 @@ while :; do
|
||||
setvar _${var}_delete 1
|
||||
export _${var}_delete
|
||||
done
|
||||
unset var # no longer needed
|
||||
;;
|
||||
"> $msg_none")
|
||||
var_list=$( set | awk -F= "
|
||||
@ -398,7 +394,6 @@ while :; do
|
||||
}"
|
||||
)
|
||||
[ "$var_list" ] && unset $var_list
|
||||
unset var_list # no longer needed
|
||||
;;
|
||||
*) # Anything else is a variable to edit
|
||||
var="${mtag# }"
|
||||
@ -410,7 +405,6 @@ while :; do
|
||||
setvar _${var}_delete 1
|
||||
export _${var}_delete
|
||||
fi
|
||||
unset var # no longer needed
|
||||
esac
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user