From 47e67a83d1c802c6ebfb6bcf18e2f238e71e53fc Mon Sep 17 00:00:00 2001 From: Zachary Gorman Date: Tue, 29 Oct 2024 11:15:06 -0700 Subject: [PATCH] Moving main repo to tech2k --- Get-PC/Private/Update-GetPC.ps1 | 8 ++++++-- Get-PC/Public/Get-PC.ps1 | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Get-PC/Private/Update-GetPC.ps1 b/Get-PC/Private/Update-GetPC.ps1 index 0d80631..b85d3f0 100644 --- a/Get-PC/Private/Update-GetPC.ps1 +++ b/Get-PC/Private/Update-GetPC.ps1 @@ -1,7 +1,11 @@ function Update-GetPC { - - $GetPCSourcePath = "\\int.samhealth.net\files\TEAM\SHSISDesktopSolutions\Powershell\Get-PC_Update_2023\Prod\Get-PC\" + if ($devStage -eq "Prod") { + $GetPCSourcePath = $getPCProdBuildPath.TrimEnd('\Get-PC.psd1') + } + elseif ($devStage -eq "Dev") { + $GetPCSourcePath = $getPCDevBuildPath.TrimEnd('\Get-PC.psd1') + } $desinationPath = ($env:PSModulePath -split ';')[0] + "\Get-PC" Write-Host "Updating Get-PC..." diff --git a/Get-PC/Public/Get-PC.ps1 b/Get-PC/Public/Get-PC.ps1 index 4d6ead8..9910f48 100644 --- a/Get-PC/Public/Get-PC.ps1 +++ b/Get-PC/Public/Get-PC.ps1 @@ -8,7 +8,7 @@ $ErrorActionPreference = 'SilentlyContinue' #DevStage can take either Dev or Prod as values $devStage = 'Dev' #Locations for dev build and prod build -$getPCDevBuildPath = '\\int.samhealth.net\files\TEAM\SHSISDesktopSolutions\Powershell\Get-PC_Update_2023\Prod\Get-PC\Get-PC.psd1' +$getPCDevBuildPath = '\\int.samhealth.net\files\Tech2k\Apps\SHS Custom Desktop Apps\Get-PC\Get-PC\Get-PC.psd1' $getPCProdBuildPath = "\\shscm01\packages\SHS Custom\Get-PC\Prod\Get-PC\Get-PC.psd1" #grabs the version number out of the module manifest and compares it to the current production version $modulemanifest = Join-Path (get-item $PSScriptRoot).Parent.FullName 'Get-PC.psd1' @@ -21,7 +21,7 @@ elseif ($devStage -eq "Dev") { $deployedVersion = (Test-ModuleManifest $getPCDevBuildPath).Version } -$getPCWrappedPath = '\\int.samhealth.net\files\TEAM\SHSISDesktopSolutions\Powershell\Get-PC_Update_2023\Get-PC-Wrapped\backlog.txt' +$getPCWrappedPath = '\\int.samhealth.net\files\Tech2k\Apps\SHS Custom Desktop Apps\Get-PC-Wrapped\backlog.txt' $SparkQueryTimeoutSec = 5