From 737e63d9d5ce35d424220e377849f5874f2350fb Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Fri, 23 Jun 2023 12:46:35 +0000 Subject: [PATCH] Update --- scripts/install_pve.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install_pve.sh b/scripts/install_pve.sh index 94665e5..0f77aec 100644 --- a/scripts/install_pve.sh +++ b/scripts/install_pve.sh @@ -150,7 +150,9 @@ fi # fi # 去除空行之外的重复行 remove_duplicate_lines "/etc/network/interfaces" -remove_duplicate_lines "/etc/network/interfaces.new" +if [ -f "/etc/network/interfaces.new" ]; then + remove_duplicate_lines "/etc/network/interfaces.new" +fi } fix_interfaces_ipv6_auto_type(){