Skip to content

第一次使用(未生成文件时),API KEY错误情况下,运行不产生报错 #12

@syunaht

Description

@syunaht

首先感谢大大精简好用的代码,在config填写正确的情况下没有问题,可以正常使用。
出于好奇自己研究了下
在API错误情况下打印:
No file, need IP
Updating zone_identifier & record_identifier
测试了下
大概出现在这个位置

CFZONE_ID=$(curl -s -X GET "https://api.cloudflare.com/client/v4/zones?name=$CFZONE_NAME" -H "X-Auth-Email: $CFUSER" -H "X-Auth-Key: $CFKEY" -H "Content-Type: application/json" | grep -Po '(?<="id":")[^"]*' | head -1 )

因为API错误的原因导致文件直接退出没有继续执行后文的错误检测代码

修不来……我爬了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions