From 73d43f907530f1649b6f132e540a86e87c532e6c Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Mon, 12 Jun 2023 20:57:20 +0900 Subject: [PATCH] Update InstallNET.sh --- Linux_reinstall/InstallNET.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Linux_reinstall/InstallNET.sh b/Linux_reinstall/InstallNET.sh index 17d5e81..5c5865f 100644 --- a/Linux_reinstall/InstallNET.sh +++ b/Linux_reinstall/InstallNET.sh @@ -1817,11 +1817,11 @@ if [[ "$setNet" == "0" ]]; then fi IPv4="$ipAddr"; MASK="$ipMask"; GATE="$ipGate"; -[[ -z "$IPv4DNSLookup" && -z "$IPv6DNSLookup" ]] && { +if [[ -z "$IPv4" && -z "$MASK" && -z "$GATE" ]] && [[ -z "$ip6Addr" && -z "$ip6Mask" && -z "$ip6Gate" ]]; then echo -ne "\n[${red}Error${plain}] The network of your machine may not be available!\n" bash $0 error exit 1 -} +fi echo -ne "\n${aoiBlue}# Network Details${plain}\n" echo -ne "\n[${yellow}Adapter Name${plain}] $interface"