Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
8a1d43ec
Commit
8a1d43ec
authored
Jan 09, 2017
by
Anton Galitsyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check the error that WriteFile returns
parent
e3f39f30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
init.go
cmd/helm/init.go
+3
-1
No files found.
cmd/helm/init.go
View file @
8a1d43ec
...
@@ -190,7 +190,9 @@ func ensureDefaultRepos(home helmpath.Home, out io.Writer) error {
...
@@ -190,7 +190,9 @@ func ensureDefaultRepos(home helmpath.Home, out io.Writer) error {
}
}
f
.
Add
(
sr
)
f
.
Add
(
sr
)
f
.
Add
(
lr
)
f
.
Add
(
lr
)
f
.
WriteFile
(
repoFile
,
0644
)
if
err
:=
f
.
WriteFile
(
repoFile
,
0644
);
err
!=
nil
{
return
err
}
}
else
if
fi
.
IsDir
()
{
}
else
if
fi
.
IsDir
()
{
return
fmt
.
Errorf
(
"%s must be a file, not a directory"
,
repoFile
)
return
fmt
.
Errorf
(
"%s must be a file, not a directory"
,
repoFile
)
}
}
...
...
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