Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create ~/.config/afx if not exist #60

Merged
merged 2 commits into from
May 18, 2023

Conversation

ebiyu
Copy link
Contributor

@ebiyu ebiyu commented May 16, 2023

Now, the afx command exits with error if ~/.config/afx doesn't exist.
This means install script always finishes error, and this isn't natural.

I created pull-request to create the directory on command execution.

err := config.CreateDirIfNotExist(cfgRoot)
if err != nil {
return errors.Wrapf(err, "%s: failed to create dir", cfgRoot)
}
files, err := config.WalkDir(cfgRoot)
Copy link
Owner

@babarot babarot May 18, 2023

Choose a reason for hiding this comment

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

Indent looks wrong. Please run go fmt.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed. Sorry for the inconvenience.

Copy link
Owner

@babarot babarot left a comment

Choose a reason for hiding this comment

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

Thank you

@babarot babarot added the release/patch Indicates patch update to action-release-label label May 18, 2023
@babarot babarot merged commit 9883505 into babarot:main May 18, 2023
@github-actions
Copy link

The new version v0.2.1 has been released 🎉

Changes: v0.2.0...v0.2.1

@ebiyu ebiyu deleted the create-directory-if-not-exist branch May 18, 2023 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release/patch Indicates patch update to action-release-label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants