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

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

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
This commit is contained in:
Aaron Klotz
2025-08-18 14:33:02 -06:00
parent 55698c8511
commit d92789affa

View File

@@ -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)
}