Skip to content
Permalink
Browse files

minor fixes for update mechanism

  • Loading branch information...
mlapshin committed Jan 10, 2019
1 parent e84a1a2 commit f04f7711fb97e159f01920a615af49dacf357893
Showing with 9 additions and 5 deletions.
  1. +1 −1 Gopkg.lock
  2. +1 −1 Makefile
  3. +7 −3 update.go

Some generated files are not rendered by default. Learn more.

@@ -38,7 +38,7 @@ vendor: Gopkg.lock | $(BASE)

# # install packr with go get because dep doesn't build binaries for us
$(GOPATH)/bin/packr:
echo "here" && $(GO) get -u github.com/gobuffalo/packr/...
$(GO) get -u github.com/gobuffalo/packr/...

# Tools

@@ -21,19 +21,23 @@ const FhirbaseRepo = "fhirbase/fhirbase"
func readYesNo() bool {
input, err := bufio.NewReader(os.Stdin).ReadString('\n')

if err != nil || (input != "y\n" && input != "n\n" && input != "Y\n" && input != "N\n") {
fmt.Printf("Invalid input. Only 'y' or 'n' are accepted.\n")
input = strings.ToLower(input)

if err != nil || (input != "y\n" && input != "n\n" && input != "yes\n" && input != "no\n") {
fmt.Printf("Invalid input. Only 'y', 'n', 'yes', 'no'j are accepted.\n")
return false
}

if input == "y\n" || input == "Y\n" {
if input == "y\n" || input == "yes\n" {
return true
}

return false
}

func updateStableBuild() error {
selfupdate.EnableLog()

latest, found, err := selfupdate.DetectLatest(FhirbaseRepo)

if err != nil {

0 comments on commit f04f771

Please sign in to comment.
You can’t perform that action at this time.