From 5dc57a112a383ceed84162f0ae954f9245ea51b3 Mon Sep 17 00:00:00 2001 From: Carrie Roberts Date: Tue, 12 Sep 2023 13:13:14 -0600 Subject: [PATCH] handle spaces in file path (#2527) --- atomics/T1016/T1016.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atomics/T1016/T1016.yaml b/atomics/T1016/T1016.yaml index 53677485..74f5de05 100644 --- a/atomics/T1016/T1016.yaml +++ b/atomics/T1016/T1016.yaml @@ -97,11 +97,11 @@ atomic_tests: prereq_command: | if (Test-Path "#{port_file}") {exit 0} else {exit 1} get_prereq_command: | - New-Item -Type Directory (split-path #{port_file}) -ErrorAction ignore | Out-Null + New-Item -Type Directory (split-path "#{port_file}") -ErrorAction ignore | Out-Null Invoke-WebRequest "#{portfile_url}" -OutFile "#{port_file}" executor: command: | - $ports = Get-content #{port_file} + $ports = Get-content "#{port_file}" $file = "#{output_file}" $totalopen = 0 $totalports = 0