Commit e4268295 authored by Michael Große's avatar Michael Große 🐿
Browse files

Stop printing success update notes twice

If the update was a success, then that update message is also printed in
cmd/version.go

In general the code in internal should not print to the console.
However, since execution stops there if the update was not a success,
the output is moved into that if-condition to keep showing the error
message to the user before the program exits.
parent 4a56b8e9
......@@ -95,8 +95,8 @@ func UpdateFromAddshore(currentVersion string, gitSummary string, verboseOutput
}
updateSuccess, updateMessage := UpdateFromAddshoreTo(*nextRelease, verboseOutput)
fmt.Println(updateMessage)
if !updateSuccess {
fmt.Println(updateMessage)
os.Exit(1)
}
return updateSuccess, updateMessage
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment