fix: create clash_provide_config file and update subscription settings
- Improved comments in settings.ini for better clarity on renew behavior and subscription URL usage.
This commit is contained in:
@@ -391,6 +391,9 @@ upsubs() {
|
||||
log Debug "Downloading ${update_file_name}"
|
||||
if upfile "${update_file_name}" "${subscription_url_clash}"; then
|
||||
log Info "${update_file_name} saved"
|
||||
# Make sure the folder exists
|
||||
mkdir -p "$(dirname "$clash_provide_config")"
|
||||
touch "$clash_provide_config"
|
||||
# If there is a yq command, extract the proxy information from the yml and output it to the clash_provide_config file
|
||||
if [ "${enhanced}" = "true" ]; then
|
||||
if ${yq} 'has("proxies")' "${update_file_name}" | grep -q "true"; then
|
||||
|
||||
Reference in New Issue
Block a user