make sure INTEGRATOR_ID exists

This commit is contained in:
2022-04-16 10:25:53 -04:00
parent ecc1d42a04
commit 807f7e412a
+4 -1
View File
@@ -1,10 +1,13 @@
param(
[Parameter(Mandatory=$false)][int]$CUSTOMER_ID=1,
[Parameter(Mandatory=$false)][string]$INTEGRATOR_ID="someone@example.com",
[Parameter(Mandatory=$false)][string]$INTEGRATOR_ID,
[Parameter(Mandatory=$false)][string]$AGENT_FILENAME="AteraAgentSetup.msi",
[Parameter(Mandatory=$false)][switch]$FORCE
)
# Make sure $INTEGRATOR_ID exists, otherwise exit this script as an agent cannot be downloaded
If ( -not $INTEGRATOR_ID ) { Exit }
# Source the Tools.ps1 script
Function SourceTools
{ . $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1'))) }