mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: able to test files
This commit is contained in:
1 parent
af27780763
commit
625c1a80da
5 files changed
+99
-28
No files matched your search
@@ -136,22 +136,16 @@ stages:
|
||||
content:
|
||||
- You are using `less` or the output contains `wow`.
|
||||
|
||||
- id: nested-condition
|
||||
task: Test nested condition
|
||||
- id: test-file-exists
|
||||
task: Test file exists
|
||||
repeatable: true
|
||||
condition:
|
||||
$or:
|
||||
- pwd:
|
||||
- '^/etc/zsh$'
|
||||
$not:
|
||||
command:
|
||||
- ls
|
||||
- $not:
|
||||
pwd:
|
||||
- '^/etc/zsh$'
|
||||
command:
|
||||
- ls
|
||||
command:
|
||||
- ls
|
||||
files:
|
||||
- path: /home/commander/jail
|
||||
type: folder
|
||||
responses:
|
||||
- type: narrative
|
||||
content:
|
||||
- You are in `/etc/zsh` and not using `ls`, or you are not in `/etc/zsh` and using `ls`.
|
||||
- There is a jail
|
||||
Reference in new issue
Block a user