Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Fix log-dir and create path #107

Merged
merged 1 commit into from
Mar 23, 2017
Merged

Conversation

resouer
Copy link
Contributor

@resouer resouer commented Mar 23, 2017

Fixes #106 #97

I copied flags.go out of vendor because we can only call Hidden before Parse(). So we have to modify flags.go.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 23, 2017
@k8s-reviewable
Copy link

This change is Reviewable


path := pflag.Lookup("log-dir").Value.String()
if _, err := os.Stat(path); os.IsNotExist(err) {
os.Mkdir(path, 644)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be os.MkdirAll(path, 0755)

@feiskyer
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 23, 2017
@feiskyer feiskyer merged commit c4f1ef5 into kubernetes-retired:master Mar 23, 2017
@resouer resouer deleted the fix-log branch March 23, 2017 06:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants