. "$PSScriptRoot/../../Scripts/Context.ps1";

$null = New-Module {
    function Invoke-BackupGit([Context] $context) {}

    function Invoke-RestoreGit([Context] $context) {
        $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;
    }
}