From 01f4b2bd2a2a2b9e9c667aeffcae2fcb810fa524 Mon Sep 17 00:00:00 2001 From: Daniel Perez Date: Fri, 13 May 2016 15:53:24 +0900 Subject: [PATCH] Fix list-all. --- bin/list-all | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/list-all b/bin/list-all index eba8c97..219dc55 100755 --- a/bin/list-all +++ b/bin/list-all @@ -3,8 +3,9 @@ list_all() { local http_endpoint="https://www.python.org/ftp/python/" local extract_regexp='s|.*\?\([0-9].*\?\)/.*\?|\1|p' + local black_list='2.0' - curl -s $http_endpoint | sed -ne "$extract_regexp" | tr '\n' ' ' + curl -s $http_endpoint | sed -ne "$extract_regexp" | grep -vE "^($black_list)$" | tr '\n' ' ' } list_all