Adding prereq (#2925)
Co-authored-by: Carrie Roberts <clr2of8@gmail.com>
This commit is contained in:
committed by
GitHub
parent
94d85e4c96
commit
8cbea7db3e
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user