Fix handling windows paths
This commit is contained in:
parent
1e981ed2d7
commit
4a88657bf5
1 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,10 @@ $null = New-Module {
|
||||||
function Invoke-BackupGit([Context] $context) {}
|
function Invoke-BackupGit([Context] $context) {}
|
||||||
|
|
||||||
function Invoke-RestoreGit([Context] $context) {
|
function Invoke-RestoreGit([Context] $context) {
|
||||||
Start-Process -Wait "$PSScriptRoot/../../../Common/Config/git/install.sh";
|
$script = New-TemporaryFile;
|
||||||
|
$script = Rename-Item $script "$($script.Name).sh" -PassThru;
|
||||||
|
Set-Content $script "bash `"$PSScriptRoot/../../../Common/Config/git/install.sh`"";
|
||||||
|
Start-Process -Wait $script;
|
||||||
|
Remove-Item $script;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue