modified: RdzeN-Profile.ps1
This commit is contained in:
parent
d607f3d6a8
commit
8889612260
@ -20,9 +20,10 @@ if (-not (Test-Path $path_gitea_powershell_profile_functions )) {
|
|||||||
|
|
||||||
# 2. Download / pull GIT REPO
|
# 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) {
|
if (-not (Get-ChildItem $path_gitea_powershell_profile_functions).count -gt 0) {
|
||||||
Set-Location $path_gitea
|
Set-Location $path_gitea
|
||||||
$RepositoryURL = "https://gitea.rdzen.net/najlepszytomasz/PowerShell-Profile.git"
|
|
||||||
Write-Host "Creating GIT clone for: $RepositoryURL" -ForegroundColor Yellow
|
Write-Host "Creating GIT clone for: $RepositoryURL" -ForegroundColor Yellow
|
||||||
try {
|
try {
|
||||||
git clone $RepositoryURL -q
|
git clone $RepositoryURL -q
|
||||||
@ -43,6 +44,9 @@ if (-not (Get-ChildItem $path_gitea_powershell_profile_functions).count -gt 0) {
|
|||||||
|
|
||||||
# 3. dot source functions.
|
# 3. dot source functions.
|
||||||
|
|
||||||
|
Get-ChildItem $path_gitea_powershell_profile_functions | ForEach-Object {
|
||||||
|
. $_.FullName
|
||||||
|
}
|
||||||
|
|
||||||
# 99. Reload Profile
|
# 99. Reload Profile
|
||||||
#Reload-Profile
|
Reload-Profile
|
Loading…
x
Reference in New Issue
Block a user