From d607f3d6a8a36e4b65e5283caa023ddb7a51df77 Mon Sep 17 00:00:00 2001 From: Tomasz Kostrzewa Date: Tue, 5 Mar 2024 18:28:46 +0100 Subject: [PATCH] modified: RdzeN-Profile.ps1 --- RdzeN-Profile.ps1 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/RdzeN-Profile.ps1 b/RdzeN-Profile.ps1 index 1ba066f..0a9148e 100644 --- a/RdzeN-Profile.ps1 +++ b/RdzeN-Profile.ps1 @@ -23,10 +23,22 @@ if (-not (Test-Path $path_gitea_powershell_profile_functions )) { if (-not (Get-ChildItem $path_gitea_powershell_profile_functions).count -gt 0) { Set-Location $path_gitea $RepositoryURL = "https://gitea.rdzen.net/najlepszytomasz/PowerShell-Profile.git" - git clone $RepositoryURL -q + Write-Host "Creating GIT clone for: $RepositoryURL" -ForegroundColor Yellow + try { + git clone $RepositoryURL -q + Write-Host "Success GIT clone for: $RepositoryURL" -ForegroundColor Green + } catch { + Write-Host "Error occured while GIT clone for: $RepositoryURL" -ForegroundColor Red + } } else { Set-Location $path_gitea_powershell_profile - git pull -q + Write-Host "Pulling GIT for: $RepositoryURL" -ForegroundColor Yellow + try { + git pull -q + Write-Host "Success GIT pull for: $RepositoryURL" -ForegroundColor Green + } catch { + Write-Host "Error occured while GIT pull for: $RepositoryURL" -ForegroundColor Red + } } # 3. dot source functions.