From 645cb4edcd94f996baeae5609aef4bf9e900a2a2 Mon Sep 17 00:00:00 2001 From: McNulty <62604194+dglauche@users.noreply.github.com> Date: Thu, 18 Feb 2021 16:57:41 +0100 Subject: [PATCH] Update T1485.yaml (#1395) Let the file which will be deleted be more dynamic to allow users to define thier own using an input argument Co-authored-by: Carrie Roberts --- atomics/T1485/T1485.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atomics/T1485/T1485.yaml b/atomics/T1485/T1485.yaml index a6865915..8c372e6a 100644 --- a/atomics/T1485/T1485.yaml +++ b/atomics/T1485/T1485.yaml @@ -29,7 +29,7 @@ atomic_tests: Remove-Item $env:TEMP\SDelete.zip -Force executor: command: | - if (-not (Test-Path $env:TEMP\T1485.txt)) { New-Item $env:TEMP\T1485.txt -Force } + if (-not (Test-Path #{file_to_delete})) { New-Item #{file_to_delete} -Force } Invoke-Expression -Command "#{sdelete_exe} -accepteula #{file_to_delete}" name: powershell - name: macOS/Linux - Overwrite file with DD