Skip to content

Commit

Permalink
correct modes
Browse files Browse the repository at this point in the history
  • Loading branch information
intrand committed Sep 16, 2022
1 parent 8cd7d53 commit 2658b53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func downloadAsset(ctx context.Context, asset *github.ReleaseAsset, path string)
return err
}

err = os.WriteFile(path, content, os.ModePerm)
err = os.WriteFile(path, content, 0644)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func mkTempDir(tagName string) (dir string, err error) {
}

if !exist { // create it if it doesn't
err = os.MkdirAll(dir, os.ModeDir)
err = os.MkdirAll(dir, 0775)
if err != nil {
return dir, err
}
Expand Down
4 changes: 2 additions & 2 deletions setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ WantedBy=default.target

// mkdir -p
dir, _ := filepath.Split(systemdPath)
err = os.MkdirAll(dir, os.ModeDir)
err = os.MkdirAll(dir, 0755)
if err != nil {
return err
}

err = os.WriteFile(systemdPath, []byte(unit), os.ModePerm)
err = os.WriteFile(systemdPath, []byte(unit), 0644)
if err != nil {
return err
}
Expand Down

0 comments on commit 2658b53

Please sign in to comment.