Skip to content

Commit

Permalink
Fastfix: resolve problem with -version
Browse files Browse the repository at this point in the history
  • Loading branch information
WiRight committed Nov 9, 2020
1 parent 7c41b76 commit 9ea0131
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
const (
input = "input" // Read info from user input
env = "env" // Get param from env
version = "1.3.1" // Application version
version = "1.3.2" // Application version
)

var (
Expand Down Expand Up @@ -158,6 +158,13 @@ func main() {
debugMode = *isDebug
// -------------------------

// Check that using -version argument
if *showVersion == true {
println("Dron version:", version)

return
}

c := config{}

data, err := ioutil.ReadFile("./dron.yaml")
Expand Down Expand Up @@ -185,13 +192,6 @@ func main() {
return
}

// Check that using -version argument
if *showVersion == true {
println("Dron version:", version)

return
}

// Check the first argument exist
var fArg string

Expand Down

0 comments on commit 9ea0131

Please sign in to comment.