mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: update quest [remove]
This commit is contained in:
1 parent
8ed6acbcc1
commit
f9fa5a2102
1 file changed
+5
-11
+5
-11
@@ -41,11 +41,11 @@ stages:
|
|||||||
|
|
||||||
- id: rm-hello
|
- id: rm-hello
|
||||||
requirements:
|
requirements:
|
||||||
- start
|
- ls
|
||||||
task: 使用 `rm` 刪除 `hello.txt`
|
task: 使用 `rm` 刪除 `hello.txt`
|
||||||
condition:
|
condition:
|
||||||
command:
|
command:
|
||||||
- ^rm hello.txt$
|
- ^rm\s
|
||||||
files:
|
files:
|
||||||
- path: hello.txt
|
- path: hello.txt
|
||||||
exists: false
|
exists: false
|
||||||
@@ -182,9 +182,7 @@ stages:
|
|||||||
請先用 `ls notes` 確認 `notes` 資料夾內有哪些檔案,再來試試看吧!
|
請先用 `ls notes` 確認 `notes` 資料夾內有哪些檔案,再來試試看吧!
|
||||||
- condition:
|
- condition:
|
||||||
command:
|
command:
|
||||||
- ^rm
|
- ^rmdir notes$
|
||||||
error:
|
|
||||||
- 'No such file or directory'
|
|
||||||
responses:
|
responses:
|
||||||
- content: |
|
- content: |
|
||||||
這個錯誤的意思是找不到檔案
|
這個錯誤的意思是找不到檔案
|
||||||
@@ -207,8 +205,6 @@ stages:
|
|||||||
- rm-notes-content
|
- rm-notes-content
|
||||||
task: 使用 `rmdir` 刪除 `notes` 資料夾
|
task: 使用 `rmdir` 刪除 `notes` 資料夾
|
||||||
condition:
|
condition:
|
||||||
command:
|
|
||||||
- ^rmdir notes$
|
|
||||||
files:
|
files:
|
||||||
- path: notes
|
- path: notes
|
||||||
exists: false
|
exists: false
|
||||||
@@ -226,9 +222,7 @@ stages:
|
|||||||
task: 使用 `ls` 查看 `trash` 資料夾內容
|
task: 使用 `ls` 查看 `trash` 資料夾內容
|
||||||
condition:
|
condition:
|
||||||
command:
|
command:
|
||||||
- ^ls$
|
- ^ls trash$
|
||||||
output:
|
|
||||||
- garbage.txt
|
|
||||||
responses:
|
responses:
|
||||||
- content: |
|
- content: |
|
||||||
天啊!`trash` 資料夾裡有好多檔案,甚至還有其他的資料夾!
|
天啊!`trash` 資料夾裡有好多檔案,甚至還有其他的資料夾!
|
||||||
@@ -245,7 +239,7 @@ stages:
|
|||||||
task: 使用 `rm -r` 刪除 `trash` 資料夾
|
task: 使用 `rm -r` 刪除 `trash` 資料夾
|
||||||
condition:
|
condition:
|
||||||
command:
|
command:
|
||||||
- ^rm -r$
|
- ^rm -r trash$
|
||||||
files:
|
files:
|
||||||
- path: trash
|
- path: trash
|
||||||
exists: false
|
exists: false
|
||||||
|
|||||||
Reference in new issue
Block a user