소스 검색

installer: check for network on source selection

the if condition is correct because test_network returns 1 on success

fixes #171
classabbyamp 2 년 전
부모
커밋
018343cd10
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      installer.sh.in

+ 3 - 1
installer.sh.in

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