Add log messages for all installation steps
This commit is contained in:
parent
9ffa903626
commit
c6907d6eec
12 changed files with 31 additions and 0 deletions
scripts/Windows/Software/git
|
@ -4,9 +4,12 @@ $null = New-Module {
|
|||
function Backup-Git([Context] $context) {}
|
||||
|
||||
function Restore-Git([Context] $context) {
|
||||
Write-Host "Restoring git";
|
||||
$script = New-TemporaryFile;
|
||||
$script = Rename-Item $script "$($script.Name).sh" -PassThru;
|
||||
|
||||
Write-Information "Preparing setup script";
|
||||
|
||||
Set-Content $script (
|
||||
[string]::Join(
|
||||
"`n",
|
||||
|
@ -14,6 +17,7 @@ $null = New-Module {
|
|||
"bash `"$PSScriptRoot/../../../Common/Config/git/install.sh`"",
|
||||
"bach rm ~/.bashrc")));
|
||||
|
||||
Write-Information "Running prepared script";
|
||||
Start-Process -Wait $script;
|
||||
Remove-Item $script;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue