Skip to content

Commit 40f1ad4

Browse files
committed
remove the \r from the version output
1 parent 79e3d27 commit 40f1ad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cli/firmware/getversion.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func getVersion(board *firmwareindex.IndexBoard) (fwVersion string, err error) {
126126
if strings.HasPrefix(line, "Firmware version installed: ") {
127127
version := strings.Replace(line, "Firmware version installed: ", "", 1)
128128
semver := semver.ParseRelaxed(version)
129-
return semver.String(), nil
129+
return strings.Replace(semver.String(), "\r", "", 1), nil
130130
}
131131
if strings.HasPrefix(line, "Communication with WiFi module failed!") {
132132
return "", fmt.Errorf("communication with WiFi module failed")

0 commit comments

Comments
 (0)