From bf0849526d949bcded646b9ff0fe48132e537109 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Mon, 31 Jul 2023 17:10:05 +0800 Subject: [PATCH] Update install_pve.sh --- scripts/install_pve.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/install_pve.sh b/scripts/install_pve.sh index 7e9a7d7..20bd216 100644 --- a/scripts/install_pve.sh +++ b/scripts/install_pve.sh @@ -624,7 +624,7 @@ check_haveged _yellow "Detecting system information, will probably stay on the page for up to 1~2 minutes" _yellow "正在检测系统信息,大概会停留在该页面最多1~2分钟" -check_interface() +check_interface(){ if [ -z "$interface_2" ]; then interface=${interface_1} return @@ -652,13 +652,12 @@ check_interface() for iface in $interfaces_list; do if [[ "$iface" = "$interface_1" || "$iface" = "$interface_2" ]]; then interface="$iface" - return fi done if [ -z "$interface" ]; then interface="eth0" - return fi + return fi else interface="eth0"