Update cattools.sh

This commit is contained in:
喵二
2024-07-12 19:49:16 +08:00
committed by GitHub
parent 7e1c1fb677
commit 77a3de6509

View File

@@ -1022,7 +1022,7 @@ catwrt_opkg_list_installed(){
fi fi
backup_installed_packages() { backup_installed_packages() {
echo "名单中已安装软件包列表..." echo "正在备份名单中已安装软件包列表..."
> "$BACKUP_FILE" > "$BACKUP_FILE"
for package in "${PACKAGES[@]}"; do for package in "${PACKAGES[@]}"; do
if opkg list_installed | grep -q "^$package "; then if opkg list_installed | grep -q "^$package "; then