installer: check for network on source selection

the if condition is correct because test_network returns 1 on success

fixes #171
This commit is contained in:
classabbyamp 2023-04-07 22:07:25 -04:00 committed by classabbyamp
parent c820517fbc
commit 018343cd10
1 changed files with 3 additions and 1 deletions

View File

@ -1394,7 +1394,9 @@ menu_source() {
"Local") src="local";;
"Network") src="net";
if [ -z "$NETWORK_DONE" ]; then
menu_network;
if test_network; then
menu_network
fi
fi;;
*) return 1;;
esac