Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix grep error when txt value begin with - char #2471

merged 1 commit into from Sep 14, 2019


Copy link

commented Sep 6, 2019

first, Thanks for contributing !

某些情况下 _acme-challenge 生成的 TXT 记录开头可能是 -,比如:

/*** from 阿里云解析 DNS 操作日志 *** /
新增解析记录TXT记录 _acme-challenge 默认 -ydqkDpgiJzHXQQV43h1-HpZ6-S3WAyuHxZ6lgLIm3A ( TTL: 600)
/*** end of from 阿里云解析 DNS 操作日志 *** /

此时grep 匹配时会以为是命令选项而产生错误,busybox版的grep错误提示如下:

grep: invalid option -- 'y'
BusyBox v1.22.1 (2018-09-28 14:18:44 CST) multi-call binary.

@Neilpang Neilpang merged commit 950d024 into Neilpang:dev Sep 14, 2019
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.