You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/01/07 00:04:57 UTC
[GitHub] dongjoon-hyun commented on a change in pull request #23476:
[SPARK-26554][BUILD] Update `release-util.sh` to avoid GitBox fake 200
headers
dongjoon-hyun commented on a change in pull request #23476: [SPARK-26554][BUILD] Update `release-util.sh` to avoid GitBox fake 200 headers
URL: https://github.com/apache/spark/pull/23476#discussion_r245528855
##########
File path: dev/create-release/release-util.sh
##########
@@ -73,7 +73,7 @@ function fcreate_secure {
}
function check_for_tag {
- curl -s --head --fail "$ASF_REPO_WEBUI;a=commit;h=$1" >/dev/null
+ ! curl -s --fail "$ASF_REPO_WEBUI;a=commit;h=$1" | grep '404 Not Found' > /dev/null
Review comment:
Thank you for review and approval, @srowen . Yes, right. `!` does.
We cannot use `grep -v` which matches all the other lines doesn't have `404 Not Found`. `grep` only returns `1` when no lines are selected.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org