Fixed Update

This commit is contained in:
Zachary Gorman 2025-02-21 13:45:23 -08:00
parent 0b8fdea45a
commit 26829e8e34

View file

@ -11,7 +11,7 @@ function Update-GetPC {
$desinationPath = ($env:PSModulePath -split ';')[0] + "\Get-PC" $desinationPath = ($env:PSModulePath -split ';')[0] + "\Get-PC"
Write-Host "Updating Get-PC..." Write-Host "Updating Get-PC..."
Robocopy.exe $GetPCSourcePath $desinationPath /mir Robocopy.exe $GetPCSourcePath $desinationPath /mir | Out-Null
if($LASTEXITCODE -gt 7){ if($LASTEXITCODE -gt 7){
Write-Warning 'An error has occured during update. Please restart powershell and try again' Write-Warning 'An error has occured during update. Please restart powershell and try again'