Fix issue with running update source but then not properly finding version. () <= subshell fail

This commit is contained in:
Joshua Bussdieker
2013-05-23 13:03:18 -07:00
parent 3c1ea3e670
commit 1a8639a1ca
+5 -1
View File
@@ -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