From 64754547412d8b7d9498be7316dccdef18189a06 Mon Sep 17 00:00:00 2001 From: Junv Zhao Date: Sun, 6 Mar 2016 22:03:27 +0800 Subject: [PATCH] remove temp echo message --- scripts/function/tools | 5 ----- scripts/listall | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/function/tools b/scripts/function/tools index 8ff9c7c..8210129 100644 --- a/scripts/function/tools +++ b/scripts/function/tools @@ -9,8 +9,3 @@ GREP_PATH=$(unalias grep &> /dev/null; which grep) || display_error "$GREP_ERROR SORT_PATH=$(unalias sort &> /dev/null; which sort) || display_error "$SORT_ERROR" || return 1 HEAD_PATH=$(unalias head &> /dev/null; which head) || display_error "$HEAD_ERROR" || return 1 -GITHUB_REPO_URL=git@github.com:golang/go.git - -repo_url() { - return GITHUB_REPO_URL -} \ No newline at end of file diff --git a/scripts/listall b/scripts/listall index 1c23d9c..7aef628 100755 --- a/scripts/listall +++ b/scripts/listall @@ -32,13 +32,13 @@ read_command_line "$@" echo display_message "gvm gos (available)" echo -display_message "h==========" + go_repo_url=git@github.com:golang/go.git versions=$(git ls-remote -t ${go_repo_url} | awk -F/ '{ print $NF }' | $SORT_PATH) if [[ $? -ne 0 ]]; then display_fatal "Failed to get version list from Github" fi -display_message "~~~~~~~~~~~~~" + for version in $versions; do if [[ "$tag_filter" == "release" ]]; then if [[ "${version:0:7}" == "release" ]]; then