Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #98 from shonnly/patch-1
Browse files Browse the repository at this point in the history
fix power-shell command
  • Loading branch information
GeertvanHorrik authored Oct 3, 2016
2 parents 6e17876 + feb4094 commit 3462f82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GitLink/Pdb/SrcSrv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static byte[] Create(string rawUrl, string revision, IEnumerable<Tuple<st
{
sw.WriteLine("TRGFILE=%fnbksl%(%targ%%var2%)");
sw.WriteLine("SRCSRVTRG=%TRGFILE%");
sw.WriteLine("SRCSRVCMD=powershell -NoProfile -Command \"(New-Object System.Net.WebClient).DownloadFile('%RAWURL%', '%TRGFILE%')\"");
sw.WriteLine("SRCSRVCMD=powershell invoke-command -scriptblock {param($url='%RAWURL%', $output='%TRGFILE%'); (New-Object System.Net.WebClient).DownloadFile($url, $output)}");
}
else
{
Expand Down Expand Up @@ -122,4 +122,4 @@ public static byte[] CreateVsts(string revision, IEnumerable<Tuple<string, strin
}
}
}
}
}

0 comments on commit 3462f82

Please sign in to comment.