Skip to content

Commit

Permalink
feat(io): Remove execute permission from a saved file (#37)
Browse files Browse the repository at this point in the history
<!-- markdownlint-disable MD041 -->

**Issue:** close #29

### Checklist

- [x] This Pull Request introduces a new feature.
- [ ] This Pull Request fixes a bug.

### Description

Since I specified as `os.ModePerm`, all permission was added.

<!--
A clear and concise description
  - Why did you make this change?
  - Please describe how this method is better than others.
-->

<br />

- [x] I agree to follow the [Code of
Conduct](https://github.com/5ouma/mli/blob/main/.github/CODE_OF_CONDUCT.md).

Signed-off-by: Souma <[email protected]>
  • Loading branch information
5ouma authored Jan 22, 2024
1 parent ea23ae5 commit 7e01ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func (loginItems *LoginItems) Save(path string, force bool) error {
if err != nil {
return err
}
if err := os.WriteFile(path, append(data, 10), os.ModePerm); err != nil {
if err := os.WriteFile(path, append(data, 10), 0644); err != nil {
return err
}

Expand Down

0 comments on commit 7e01ec6

Please sign in to comment.