modified: RdzeN-Profile.ps1

This commit is contained in:
Tomasz Kostrzewa 2024-03-05 18:31:35 +01:00
parent d607f3d6a8
commit 8889612260

View File

@ -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
Reload-Profile