Remove unnecessary file when installing git
This commit is contained in:
parent
c9094c7d04
commit
7b9392a539
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue