Skip to content
Snippets Groups Projects
Verified Commit b5ea0867 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: fix -e option on print #18

parent f584deef
No related branches found
No related tags found
No related merge requests found
......@@ -214,6 +214,11 @@ func executeCommand() {
version, err := getVersion()
if err != nil {
if arguments.Print.ExitCode {
os.Exit(10)
}
_, err := fmt.Fprintf(os.Stderr, "Error: %s\n", err)
if err != nil {
fmt.Printf("Error: %s\n", err)
......@@ -266,8 +271,8 @@ func executeCommand() {
err = writeVersion(newVersion)
if err != nil {
if activeCommand.Name == "auto" || activeCommand.Name == "predict" || activeCommand.Name == "print" {
if arguments.Auto.ExitCode || arguments.Predict.ExitCode || arguments.Print.ExitCode {
if activeCommand.Name == "auto" || activeCommand.Name == "predict" {
if arguments.Auto.ExitCode || arguments.Predict.ExitCode {
os.Exit(10)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment