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

Commit

Permalink
fix power-shell command
Browse files Browse the repository at this point in the history
I am not sure if i am the only on, but the original Powershell command did not work for me. I had to fix it.
I am not a PS guru, so I might have messed something up, however it is working perfectly for my sources.
  • Loading branch information
shonnly authored Sep 29, 2016
1 parent 93237bb commit feb4094
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 feb4094

Please sign in to comment.