refactor(config): use download_file for HTTP(S) subscription downloads

This commit is contained in:
Arvin
2026-04-14 11:59:29 +08:00
parent 61796f57a9
commit ee5fc58ac5
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ prompt_subscription_if_needed
if [ -n "$(subscription_url 2>/dev/null || true)" ]; then
if generate_config; then
echo "📡 订阅已生效"
echo "✨ 订阅已生效"
post_install_verify
else
write_runtime_value "INSTALL_VERIFY_CONFIG_READY" "false"
+2 -2
View File
@@ -2624,9 +2624,9 @@ prompt_subscription_if_needed() {
fi
echo
echo "📡 订阅"
echo "📦 订阅"
echo "请输入订阅链接"
echo "直接回车可跳过,稍后执行:clashctl add <订阅链接>"
# echo "直接回车可跳过,稍后执行:clashctl add <订阅链接>"
printf "> "
IFS= read -r input_url || true