Update src/svsmsp.install.ps1
This commit is contained in:
@@ -160,7 +160,7 @@ function Install-SVSMSP {
|
||||
Unregister-PSRepository -Name $NewRepositoryName -ErrorAction Stop
|
||||
Write-LogHybrid "$NewRepositoryName repository unregistered (PSGet v2)." "Success" "SVSModule" -LogToEvent
|
||||
} catch {
|
||||
Write-LogHybrid "Failed to unregister PSRepository $NewRepositoryName: $($_.Exception.Message)" "Error" "SVSModule" -LogToEvent
|
||||
Write-LogHybrid "Failed to unregister PSRepository ${NewRepositoryName}: $($_.Exception.Message)" "Error" "SVSModule" -LogToEvent
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ function Install-SVSMSP {
|
||||
Unregister-PSResourceRepository -Name $NewRepositoryName -ErrorAction Stop
|
||||
Write-LogHybrid "$NewRepositoryName repository unregistered (PSResourceGet)." "Success" "SVSModule" -LogToEvent
|
||||
} catch {
|
||||
Write-LogHybrid "Failed to unregister PSResource repo $NewRepositoryName: $($_.Exception.Message)" "Error" "SVSModule" -LogToEvent
|
||||
Write-LogHybrid "Failed to unregister PSResource repo ${NewRepositoryName}: $($_.Exception.Message)" "Error" "SVSModule" -LogToEvent
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -279,7 +279,7 @@ function Install-SVSMSP {
|
||||
}
|
||||
}
|
||||
} catch {
|
||||
Write-LogHybrid "Installation failed using $strategy: $($_.Exception.Message)" "Error" "SVSModule" -LogToEvent
|
||||
Write-LogHybrid "Installation failed using ${strategy}: $($_.Exception.Message)" "Error" "SVSModule" -LogToEvent
|
||||
throw
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user