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

16 lines
400 B
PowerShell
Raw Normal View History

2023-07-12 20:37:31 +00:00
#!/bin/pwsh
2023-06-07 20:52:34 +00:00
. "$PSScriptRoot/../../Scripts/Context.ps1";
. "$PSScriptRoot/../../Scripts/BashScript.ps1";
2023-06-07 20:58:42 +00:00
2023-06-08 00:28:33 +00:00
$null = New-Module {
2023-06-30 10:19:54 +00:00
function Backup-Git([Context] $context) {}
2023-06-22 18:44:40 +00:00
2023-06-30 10:19:54 +00:00
function Restore-Git([Context] $context) {
Write-Host "Restoring git";
Start-BashScript @(
"bash `"$PSScriptRoot/../../../Common/Config/git/install.sh`"",
"rm ~/.bashrc");
2023-06-22 18:44:40 +00:00
}
2023-07-12 20:44:20 +00:00
}