Fix handling windows paths

This commit is contained in:
Manuel Thalmann 2023-06-22 21:23:36 +02:00
parent 1e981ed2d7
commit 4a88657bf5

View file

@ -4,6 +4,10 @@ $null = New-Module {
function Invoke-BackupGit([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;
}
}