diff --git a/RdzeN-Profile.ps1 b/RdzeN-Profile.ps1 index 0a9148e..5d5556e 100644 --- a/RdzeN-Profile.ps1 +++ b/RdzeN-Profile.ps1 @@ -20,9 +20,10 @@ if (-not (Test-Path $path_gitea_powershell_profile_functions )) { # 2. Download / pull GIT REPO +$RepositoryURL = "https://gitea.rdzen.net/najlepszytomasz/PowerShell-Profile.git" + 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" Write-Host "Creating GIT clone for: $RepositoryURL" -ForegroundColor Yellow try { git clone $RepositoryURL -q @@ -43,6 +44,9 @@ if (-not (Get-ChildItem $path_gitea_powershell_profile_functions).count -gt 0) { # 3. dot source functions. +Get-ChildItem $path_gitea_powershell_profile_functions | ForEach-Object { + . $_.FullName +} # 99. Reload Profile -#Reload-Profile \ No newline at end of file +Reload-Profile \ No newline at end of file