Fixed Update
This commit is contained in:
parent
0b8fdea45a
commit
26829e8e34
|
|
@ -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'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue