mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 04:46:19 +10:00
Fix issue with running update source but then not properly finding version. () <= subshell fail
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user