Simplify loop by moving predicate to clause

This commit is contained in:
dteske 2016-12-13 02:47:39 +00:00
parent 66dc7693d3
commit 21f47b71cd

View File

@ -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