fix clone path
This commit is contained in:
parent
a98d723977
commit
e382e0f720
2 changed files with 3 additions and 2 deletions
|
@ -27,7 +27,7 @@ function Invoke-CmdScript {
|
||||||
[String] $scriptName
|
[String] $scriptName
|
||||||
)
|
)
|
||||||
$cmdLine = """$scriptName"" $args & set"
|
$cmdLine = """$scriptName"" $args & set"
|
||||||
& $Env:SystemRoot\system32\cmd.exe /c $cmdLine |
|
& $Env:SystemRoot\system32\cmd.exe /c $cmdLine 2>&1 |
|
||||||
select-string '^([^=]*)=(.*)$' | foreach-object {
|
select-string '^([^=]*)=(.*)$' | foreach-object {
|
||||||
$varName = $_.Matches[0].Groups[1].Value
|
$varName = $_.Matches[0].Groups[1].Value
|
||||||
$varValue = $_.Matches[0].Groups[2].Value
|
$varValue = $_.Matches[0].Groups[2].Value
|
||||||
|
|
|
@ -14,7 +14,8 @@
|
||||||
|
|
||||||
Set-PSDebug -Trace 1
|
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..."
|
Write-Output "performing git pull..."
|
||||||
git checkout master 2>&1 | %{ "$_" }
|
git checkout master 2>&1 | %{ "$_" }
|
||||||
git reset --hard 2>&1 | %{ "$_" }
|
git reset --hard 2>&1 | %{ "$_" }
|
||||||
|
|
Loading…
Reference in a new issue