Skip to content

Commit

Permalink
bumped to release 0.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanholsteijn committed Aug 5, 2021
1 parent 09ed999 commit 7c8e2a3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .release
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
release=0.4.5
tag=v0.4.5
release=0.4.6
tag=v0.4.6
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (m *Main) initialize() {
log.Printf("INFO: setting umask to %04o\n", mask)
}

syscall.Umask(int(mask))
setUmask(int(mask))
}
m.client, m.clientError = secretmanager.NewClient(m.ctx, option.WithCredentials(m.credentials))
}
Expand Down
9 changes: 9 additions & 0 deletions umask.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// +build !windows

package main

import "syscall"

func setUmask(mask int) int {
return syscall.Umask(mask)
}
10 changes: 10 additions & 0 deletions umask_windows.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//build +windows

package main

import "log"

func setUmask(mask int) int {
log.Printf("INFO: umask %04d is not supported on Windows\n", mask)
return 0
}

0 comments on commit 7c8e2a3

Please sign in to comment.