PortValhalla/scripts/Windows/Software/git/Manage.ps1

16 lines
410 B
PowerShell

#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/BashScript.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
$null = New-Module {
function Backup-Git([Context] $context) {}
function Restore-Git([Context] $context) {
Write-Host "Restoring git";
Start-BashScript @(
"bash `"$PSScriptRoot/../../../Common/Config/git/install.sh`"",
"rm ~/.bashrc");
}
}