Yeet those builds out!

internal/mk{deb,rpm}: mark config files as 0600

Signed-off-by: Xe Iaso <me@xeiaso.net>

Xe Iaso a43f9155 0f8f46a7

Changed files
+14 -2
cmd
yeet
internal
mkdeb
mkrpm
var
+4
CHANGELOG.md
··· 7 8 ## [Unreleased] 9 10 ## v0.0.6 11 12 - Exit when `--version` is passed.
··· 7 8 ## [Unreleased] 9 10 + ## v0.0.7 11 + 12 + Make configuration files for OS packages have mode 0600 by default. 13 + 14 ## v0.0.6 15 16 - Exit when `--version` is passed.
+1 -1
VERSION
··· 1 - 0.0.5
··· 1 + 0.0.7
+1 -1
cmd/yeet/main.go
··· 67 } 68 69 func runShellCommand(literals []string, exprs ...any) string { 70 - shPath, err := exec.LookPath("sh") 71 if err != nil { 72 panic(err) 73 }
··· 67 } 68 69 func runShellCommand(literals []string, exprs ...any) string { 70 + shPath, err := exec.LookPath("bash") 71 if err != nil { 72 panic(err) 73 }
+3
internal/mkdeb/mkdeb.go
··· 71 Type: files.TypeConfig, 72 Source: repoPath, 73 Destination: osPath, 74 }) 75 } 76
··· 71 Type: files.TypeConfig, 72 Source: repoPath, 73 Destination: osPath, 74 + FileInfo: &files.ContentFileInfo{ 75 + Mode: os.FileMode(0600), 76 + }, 77 }) 78 } 79
+3
internal/mkrpm/mkrpm.go
··· 77 Type: files.TypeConfig, 78 Source: repoPath, 79 Destination: rpmPath, 80 }) 81 } 82
··· 77 Type: files.TypeConfig, 78 Source: repoPath, 79 Destination: rpmPath, 80 + FileInfo: &files.ContentFileInfo{ 81 + Mode: os.FileMode(0600), 82 + }, 83 }) 84 } 85
+2
var/.gitignore
···
··· 1 + * 2 + !.gitignore