Simplify loop by moving predicate to clause
This commit is contained in:
parent
66dc7693d3
commit
21f47b71cd
@ -194,12 +194,8 @@ if [ "$BSDINSTALL_CONFIGCURRENT" ]; then
|
||||
f_dialog_title "Regdomain/country"
|
||||
if f_yesno "Change regdomain/country ($DEF_REGDOMAIN/$DEF_COUNTRY)?"
|
||||
then
|
||||
while :; do
|
||||
dialog_country_select "$DEF_REGDOMAIN" "$DEF_COUNTRY"
|
||||
if [ $? -eq $SUCCESS ]; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
while ! dialog_country_select "$DEF_REGDOMAIN" "$DEF_COUNTRY"
|
||||
do :; done
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user