1
0
Fork 0

fix clone path

This commit is contained in:
Christian Kühnel 2019-12-13 16:31:36 +00:00
parent a98d723977
commit e382e0f720
2 changed files with 3 additions and 2 deletions

View file

@ -27,7 +27,7 @@ function Invoke-CmdScript {
[String] $scriptName
)
$cmdLine = """$scriptName"" $args & set"
& $Env:SystemRoot\system32\cmd.exe /c $cmdLine |
& $Env:SystemRoot\system32\cmd.exe /c $cmdLine 2>&1 |
select-string '^([^=]*)=(.*)$' | foreach-object {
$varName = $_.Matches[0].Groups[1].Value
$varValue = $_.Matches[0].Groups[2].Value

View file

@ -14,7 +14,8 @@
Set-PSDebug -Trace 1
if (Test-Path -PathType Container .git){
if (Test-Path -PathType Container "llvm-project"){
Set-Location llvm-project
Write-Output "performing git pull..."
git checkout master 2>&1 | %{ "$_" }
git reset --hard 2>&1 | %{ "$_" }