在检测更新时清理cache

This commit is contained in:
2026-03-25 18:23:40 +08:00
parent 8ad48ab51a
commit 4d7aa499f0

View File

@@ -100,7 +100,7 @@ until ! echo $updatetext | grep -q "E:"; do
updatetext=$(LANGUAGE=en_US apm update 2>&1)
retry_count=$((retry_count + 1))
done
apm clean
update_app_number=$(env LANGUAGE=en_US apm list --upgradable 2>/dev/null | grep -c upgradable)
echo "update_app_number is $update_app_number"