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

grep匹配仓库名误判,导致仓库未创建 #80

Closed
Yikun opened this issue Nov 24, 2020 · 0 comments · Fixed by #81
Closed

grep匹配仓库名误判,导致仓库未创建 #80

Yikun opened this issue Nov 24, 2020 · 0 comments · Fixed by #81
Labels
bug Something isn't working

Comments

@Yikun
Copy link
Owner

Yikun commented Nov 24, 2020

例如,如果有一个repo叫aaa-bbb-ccc,那么,如果再判断ccc是否存在时,会误判存在。

echo "aaa-bbb-ccc" | grep -w aaa-bbb:可以匹配
echo "aaa-bbb-ccc" | grep -Fx aaa:不可匹配

显然,使用-Fx的时候,才能实现正确的完全匹配。

https://github.com/Yikun/hub-mirror-action/blob/master/entrypoint.sh#L158

@Yikun Yikun added the bug Something isn't working label Nov 24, 2020
@Yikun Yikun closed this as completed in #81 Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant