diff options
author | Steve Dower <steve.dower@microsoft.com> | 2018-06-12 21:35:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-12 21:35:11 (GMT) |
commit | eeb99bdd0333dd37354a5b71a5c40fe8e027c432 (patch) | |
tree | 1041942a38de8a2bc327bc73d4e2ad75350319c2 /Tools | |
parent | 4a172ccc739065bb658c75e8929774a8e94af9e9 (diff) | |
download | cpython-eeb99bdd0333dd37354a5b71a5c40fe8e027c432.zip cpython-eeb99bdd0333dd37354a5b71a5c40fe8e027c432.tar.gz cpython-eeb99bdd0333dd37354a5b71a5c40fe8e027c432.tar.bz2 |
Fixes upload script to always run commands even when previous ones fail (GH-7670)
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/msi/uploadrelease.ps1 | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Tools/msi/uploadrelease.ps1 b/Tools/msi/uploadrelease.ps1 index 1fe9bca..6dcd752 100644 --- a/Tools/msi/uploadrelease.ps1 +++ b/Tools/msi/uploadrelease.ps1 @@ -70,7 +70,9 @@ if (-not $skipupload) { popd $d = "$target/$($p[0])/" - & $plink -batch $user@$server mkdir $d "&&" chgrp downloads $d "&&" chmod g-x,o+rx $d + & $plink -batch $user@$server mkdir $d + & $plink -batch $user@$server chgrp downloads $d + & $plink -batch $user@$server chmod g-x,o+rx $d & $pscp -batch $doc.FullName "$user@${server}:$d" foreach ($a in gci "$build" -Directory) { @@ -83,12 +85,16 @@ if (-not $skipupload) { & $pscp -batch $exe.FullName "$user@${server}:$d" $sd = "$d$($a.Name)$($p[1])/" - & $plink -batch $user@$server mkdir $sd "&&" chgrp downloads $sd "&&" chmod g-x,o+rx $sd + & $plink -batch $user@$server mkdir $sd + & $plink -batch $user@$server chgrp downloads $sd + & $plink -batch $user@$server chmod g-x,o+rx $sd & $pscp -batch $msi.FullName "$user@${server}:$sd" - & $plink -batch $user@$server chgrp downloads $sd* "&&" chmod g-x,o+rx $sd* + & $plink -batch $user@$server chgrp downloads $sd* + & $plink -batch $user@$server chmod g-x,o+r $sd* } - & $plink -batch $user@$server chgrp downloads $d* "&&" chmod g-x,o+rx $d* + & $plink -batch $user@$server chgrp downloads $d* + & $plink -batch $user@$server chmod g-x,o+r $d* } if (-not $skippurge) { |