mirror of https://github.com/dapr/cli.git
Cosmetic endline fix for --version (#254)
This minor, cosmetic fix ensures the output of `--version` ends with a newline even when there's no runtime installed. Perhaps there is a better way, like ending L26 with a newline and chomping the output of `daprd --version`.
This commit is contained in:
parent
d71bb51192
commit
e982e83de7
|
@ -21,7 +21,7 @@ func GetRuntimeVersion() string {
|
|||
|
||||
out, err := exec.Command(runtimeName, "--version").Output()
|
||||
if err != nil {
|
||||
return "n/a"
|
||||
return "n/a\n"
|
||||
}
|
||||
return string(out)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue