Skip to content

Commit

Permalink
Fix ui open on linux server distributions
Browse files Browse the repository at this point in the history
  • Loading branch information
altitude committed Jul 22, 2021
1 parent 2635c32 commit 1fa8821
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cmd/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package cmd
import (
"embed"
"fmt"
"log"
"net/http"
"os/exec"
"regexp"
Expand All @@ -15,7 +14,7 @@ import (
//go:embed control
var uipath embed.FS

func openuri(uri string) {
func openuri(uri string) bool {
var err error

switch runtime.GOOS {
Expand All @@ -29,9 +28,7 @@ func openuri(uri string) {
err = fmt.Errorf("unsupported platform, open manually: %s", uri)
}

if err != nil {
log.Fatal(err)
}
return err != nil
}

var UICmd = &cobra.Command{
Expand Down

0 comments on commit 1fa8821

Please sign in to comment.