Browse Source

tool/gocross: don't set executable bits on PowerShell script

Updates https://github.com/tailscale/corp/issues/29940

Signed-off-by: Aaron Klotz <[email protected]>
Aaron Klotz 6 months ago
parent
commit
d92789affa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tool/gocross/gocross.go

+ 1 - 1
tool/gocross/gocross.go

@@ -74,7 +74,7 @@ func main() {
 				os.Exit(1)
 			}
 			psFileName := strings.TrimSuffix(os.Args[2], filepath.Ext(os.Args[2])) + ".ps1"
-			if err := atomicfile.WriteFile(psFileName, wrapperScriptPowerShell, 0755); err != nil {
+			if err := atomicfile.WriteFile(psFileName, wrapperScriptPowerShell, 0644); err != nil {
 				fmt.Fprintf(os.Stderr, "writing PowerShell wrapper script: %v\n", err)
 				os.Exit(1)
 			}