From b8a7cccff44d09440059dff4f57cbda371f70e30 Mon Sep 17 00:00:00 2001 From: Joshua Bussdieker Date: Sun, 15 Jan 2012 22:36:22 -0800 Subject: [PATCH] Add function to list all releases --- bin/gvm-listall | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 bin/gvm-listall diff --git a/bin/gvm-listall b/bin/gvm-listall new file mode 100644 index 0000000..8a86748 --- /dev/null +++ b/bin/gvm-listall @@ -0,0 +1,16 @@ +#!/bin/bash +if [[ $1 == "install" ]]; then + echo " +gvm gos (available) +" + curl -s https://go.googlecode.com/hg/.hgtags | awk '{ print $2 }' + if [[ $? -ne 0 ]]; then + echo "Failed to get list from Google" + exit 1 + fi + echo +else + echo "Please use gvm [action] to call this file" + exit 1 +fi +