mirror of
https://github.com/wnlen/clash-for-linux.git
synced 2026-10-10 12:13:04 +08:00
Merge pull request #170 from wnlen/codex/establish-codex-bootstrap-document-p70aqp
Simplify subscription defaults, auto-detect subscription format, and add Codex bootstrap docs
This commit is contained in:
@@ -2417,7 +2417,7 @@ detect_subscription_format() {
|
||||
}
|
||||
|
||||
prompt_subscription_if_needed() {
|
||||
local current_url input_url
|
||||
local current_url input_url input_fmt
|
||||
|
||||
current_url="$(subscription_url 2>/dev/null || true)"
|
||||
if [ -n "${current_url:-}" ]; then
|
||||
@@ -2443,8 +2443,9 @@ prompt_subscription_if_needed() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
input_fmt="$(detect_subscription_format "$input_url")"
|
||||
write_env_value "CLASH_SUBSCRIPTION_URL" "$input_url"
|
||||
bootstrap_subscription_from_install_input "$input_url" "convert" "default"
|
||||
bootstrap_subscription_from_install_input "$input_url" "$input_fmt" "default"
|
||||
}
|
||||
|
||||
clear_subscription() {
|
||||
|
||||
Reference in New Issue
Block a user