Do not remove x bit from published directories (GH-24101)

(cherry picked from commit af4cd16479)

Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
Miss Islington (bot) 2021-01-04 13:17:05 -08:00 committed by GitHub
parent e6d0107e13
commit def7dc3b71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ if (-not $skipupload) {
$d = "$target/$($p[0])/" $d = "$target/$($p[0])/"
& $plink -batch $user@$server mkdir $d & $plink -batch $user@$server mkdir $d
& $plink -batch $user@$server chgrp downloads $d & $plink -batch $user@$server chgrp downloads $d
& $plink -batch $user@$server chmod g-x,o+rx $d & $plink -batch $user@$server chmod o+rx $d
& $pscp -batch $chm.FullName "$user@${server}:$d" & $pscp -batch $chm.FullName "$user@${server}:$d"
if (-not $?) { throw "Failed to upload $chm" } if (-not $?) { throw "Failed to upload $chm" }
@ -115,7 +115,7 @@ if (-not $skipupload) {
$sd = "$d$($a.Name)$($p[1])/" $sd = "$d$($a.Name)$($p[1])/"
& $plink -batch $user@$server mkdir $sd & $plink -batch $user@$server mkdir $sd
& $plink -batch $user@$server chgrp downloads $sd & $plink -batch $user@$server chgrp downloads $sd
& $plink -batch $user@$server chmod g-x,o+rx $sd & $plink -batch $user@$server chmod o+rx $sd
& $pscp -batch $msi.FullName "$user@${server}:$sd" & $pscp -batch $msi.FullName "$user@${server}:$sd"
if (-not $?) { throw "Failed to upload $msi" } if (-not $?) { throw "Failed to upload $msi" }
& $plink -batch $user@$server chgrp downloads $sd* & $plink -batch $user@$server chgrp downloads $sd*