From 112965c0ecb15447604343ff887d2cec6a833847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=B5=E4=BA=8C?= <66155308+miaoermua@users.noreply.github.com> Date: Wed, 24 Jul 2024 20:16:33 +0800 Subject: [PATCH] fix --- cattools.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cattools.sh b/cattools.sh index ebc9ec5..03ff62b 100644 --- a/cattools.sh +++ b/cattools.sh @@ -1080,10 +1080,10 @@ catwrt_opkg_list_installed() { fi done - if grep -Fxq "/etc/catwrt_opkg_list_installed" "/etc/sysupgrade.conf"; then - else - echo "$config_file" >> "$sysupgrade_conf" + if ! grep -Fxq "/etc/catwrt_opkg_list_installed" "/etc/sysupgrade.conf"; then + echo "/etc/catwrt_opkg_list_installed" >> "/etc/sysupgrade.conf" fi + echo "备份完成,现在升级也不怕啦~" }