Skip to content

Commit

Permalink
Adding prereq (#2925)
Browse files Browse the repository at this point in the history
Co-authored-by: Carrie Roberts <[email protected]>
  • Loading branch information
AlbertoPellitteri and clr2of8 authored Sep 14, 2024
1 parent 94d85e4 commit 8cbea7d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions atomics/T1070.004/T1070.004.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ atomic_tests:
description: Path of file to shred
type: path
default: /tmp/victim-shred.txt
dependencies:
- description: |
Check if file already exists
prereq_command: |
if [ -f "#{file_to_shred}" ]; then echo "File already exists"; else echo "File does NOT exist yet"; exit 1; fi
get_prereq_command: |
touch #{file_to_shred}
executor:
command: |
shred -u #{file_to_shred}
Expand Down

0 comments on commit 8cbea7d

Please sign in to comment.