From 1a8639a1cae623c1498e4b8d39f63db1963ba1bf Mon Sep 17 00:00:00 2001 From: Joshua Bussdieker Date: Thu, 23 May 2013 13:03:18 -0700 Subject: [PATCH] Fix issue with running update source but then not properly finding version. () <= subshell fail --- scripts/install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 8e329cf..bcc76e9 100755 --- a/scripts/install +++ b/scripts/install @@ -174,7 +174,11 @@ main() { read_command_line $@ [[ "$VERSION" == "" ]] && display_fatal "No version specified" download_source - check_tag || (update_source && check_tag) || display_fatal "Unrecognized Go version" + check_tag + if [[ "$?" == "1" ]]; then + update_source + check_tag || display_fatal "Unrecognized Go version" + fi if [[ "$GO_NAME" == "" ]]; then GO_NAME=$version fi