Commit 92c168b0 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet

fix(2/update) newlines

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent 8b07b354
...@@ -37,10 +37,10 @@ var UpdateCmd = &cmds.Command{ ...@@ -37,10 +37,10 @@ var UpdateCmd = &cmds.Command{
v := res.Output().(*UpdateOutput) v := res.Output().(*UpdateOutput)
s := "" s := ""
if v.NewVersion != v.OldVersion { if v.NewVersion != v.OldVersion {
s = fmt.Sprintf("Successfully updated to IPFS version '%s' (from '%s')", s = fmt.Sprintf("Successfully updated to IPFS version '%s' (from '%s')\n",
v.NewVersion, v.OldVersion) v.NewVersion, v.OldVersion)
} else { } else {
s = fmt.Sprintf("Already updated to latest version ('%s')", v.NewVersion) s = fmt.Sprintf("Already updated to latest version ('%s')\n", v.NewVersion)
} }
return []byte(s), nil return []byte(s), nil
}, },
...@@ -70,10 +70,10 @@ Nothing will be downloaded or installed. ...@@ -70,10 +70,10 @@ Nothing will be downloaded or installed.
v := res.Output().(*UpdateOutput) v := res.Output().(*UpdateOutput)
s := "" s := ""
if v.NewVersion != v.OldVersion { if v.NewVersion != v.OldVersion {
s = fmt.Sprintf("A new version of IPFS is available ('%s', currently running '%s')", s = fmt.Sprintf("A new version of IPFS is available ('%s', currently running '%s')\n",
v.NewVersion, v.OldVersion) v.NewVersion, v.OldVersion)
} else { } else {
s = fmt.Sprintf("Already updated to latest version ('%s')", v.NewVersion) s = fmt.Sprintf("Already updated to latest version ('%s')\n", v.NewVersion)
} }
return []byte(s), nil return []byte(s), nil
}, },
......
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