Remove unnecessary file when installing git

This commit is contained in:
Manuel Thalmann 2023-06-30 13:11:08 +02:00
parent c9094c7d04
commit 7b9392a539

View file

@ -6,7 +6,14 @@ $null = New-Module {
function Restore-Git([Context] $context) {
$script = New-TemporaryFile;
$script = Rename-Item $script "$($script.Name).sh" -PassThru;
Set-Content $script "bash `"$PSScriptRoot/../../../Common/Config/git/install.sh`"";
Set-Content $script (
[string]::Join(
"`n",
@(
"bash `"$PSScriptRoot/../../../Common/Config/git/install.sh`"",
"bach rm ~/.bashrc")));
Start-Process -Wait $script;
Remove-Item $script;
}