feat: sanitize file checks

This commit is contained in:
wancat committed 2023-10-29 17:41:38 +08:00
1 parent 50b1fe5124
commit 8f22babe7d
7 files changed
+115 -63

No files matched your search

+15
View File
@@ -149,3 +149,18 @@ stages:
- type: narrative
content:
- There is a jail
- id: test-file-not-exist
task: Remove the forgotten_scroll.txt
repeatable: true
condition:
command:
- ls -a
$not:
files:
- path: /home/commander/forgotten_scroll.txt
type: file
responses:
- type: narrative
content:
- There is no forgotten_scroll.txt