From 4a88657bf5d5c6431a1ec6fde8b7705f423acc21 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 22 Jun 2023 21:23:36 +0200 Subject: [PATCH] Fix handling windows paths --- scripts/Windows/Software/git/Manage.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/Windows/Software/git/Manage.ps1 b/scripts/Windows/Software/git/Manage.ps1 index 9816122a..60f186af 100644 --- a/scripts/Windows/Software/git/Manage.ps1 +++ b/scripts/Windows/Software/git/Manage.ps1 @@ -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; } } \ No newline at end of file