Why test $? when you can test the command

This commit is contained in:
Devin Teske 2016-12-13 02:45:52 +00:00
parent 6ef8ca674f
commit a9d334210f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309993

View File

@ -192,8 +192,8 @@ if [ "$BSDINSTALL_CONFIGCURRENT" ]; then
[ "$DEF_REGDOMAIN" = 0 ] && DEF_REGDOMAIN="<not selected>"
[ "$DEF_COUNTRY" = 0 ] && DEF_COUNTRY="<not selected>"
f_dialog_title "Regdomain/country"
f_yesno "Change regdomain/country (now $DEF_REGDOMAIN/$DEF_COUNTRY)?"
if [ $? -eq 0 ]; then
if f_yesno "Change regdomain/country (now $DEF_REGDOMAIN/$DEF_COUNTRY)?"
then
while :; do
dialog_country_select "$DEF_REGDOMAIN" "$DEF_COUNTRY"
if [ $? -eq $SUCCESS ]; then