From eeb99bdd0333dd37354a5b71a5c40fe8e027c432 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Tue, 12 Jun 2018 14:35:11 -0700 Subject: Fixes upload script to always run commands even when previous ones fail (GH-7670) --- Tools/msi/uploadrelease.ps1 | 14 ++++++++++---- 1 file 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) { -- cgit v0.12