From 6a0c5413b45de54da61df64a3f0281e139ab95ac Mon Sep 17 00:00:00 2001 From: Peet McKinney <68706879+PeetMcK@users.noreply.github.com> Date: Wed, 17 Mar 2021 16:42:49 -0600 Subject: [PATCH] Change path separator from / to \ AgentIsOnFileSystem seems to function with '/' or '\', but since your describing a windows filesystem path '\' is the standard. --- scripts/windows/InstallWindowsAgent.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/windows/InstallWindowsAgent.ps1 b/scripts/windows/InstallWindowsAgent.ps1 index bcc5a7b1b..e8b56efca 100644 --- a/scripts/windows/InstallWindowsAgent.ps1 +++ b/scripts/windows/InstallWindowsAgent.ps1 @@ -26,7 +26,7 @@ $AGENT_INSTALLER_PATH = "C:\windows\Temp\JumpCloudInstaller.exe" # JumpCloud Agent Installation Functions Function AgentIsOnFileSystem() { - Test-Path -Path:(${AGENT_PATH} + '/' + ${AGENT_BINARY_NAME}) + Test-Path -Path:(${AGENT_PATH} + '\' + ${AGENT_BINARY_NAME}) } Function InstallAgent() { @@ -123,4 +123,4 @@ ipconfig /FlushDNS # JumpCloud Agent Installation Logic -DownloadAndInstallAgent -msvc2013x64link:($msvc2013x64Link) -TempPath:($TempPath) -msvc2013x64file:($msvc2013x64File) -msvc2013x64install:($msvc2013x64Install) -msvc2013x86link:($msvc2013x86Link) -msvc2013x86file:($msvc2013x86File) -msvc2013x86install:($msvc2013x86Install) \ No newline at end of file +DownloadAndInstallAgent -msvc2013x64link:($msvc2013x64Link) -TempPath:($TempPath) -msvc2013x64file:($msvc2013x64File) -msvc2013x64install:($msvc2013x64Install) -msvc2013x86link:($msvc2013x86Link) -msvc2013x86file:($msvc2013x86File) -msvc2013x86install:($msvc2013x86Install)