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.