Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
92c168b0
Commit
92c168b0
authored
Nov 13, 2014
by
Brian Tiger Chow
Committed by
Juan Batiz-Benet
Nov 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(2/update) newlines
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
8b07b354
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
core/commands2/update.go
core/commands2/update.go
+4
-4
No files found.
core/commands2/update.go
View file @
92c168b0
...
...
@@ -37,10 +37,10 @@ var UpdateCmd = &cmds.Command{
v
:=
res
.
Output
()
.
(
*
UpdateOutput
)
s
:=
""
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
)
}
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
},
...
...
@@ -70,10 +70,10 @@ Nothing will be downloaded or installed.
v
:=
res
.
Output
()
.
(
*
UpdateOutput
)
s
:=
""
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
)
}
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
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment