mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
modify path
This commit is contained in:
1 parent
f008fb9f60
commit
d712925d0f
1 file changed
+4
-8
@@ -64,14 +64,12 @@ stages:
|
|||||||
- ➤ 請輸入 `cd ../folder2` 來進入 `folder2` 資料夾。
|
- ➤ 請輸入 `cd ../folder2` 來進入 `folder2` 資料夾。
|
||||||
|
|
||||||
- id: cd-folder2
|
- id: cd-folder2
|
||||||
task: 用指定方式進入 `folder2` 資料夾
|
task: 進入 `folder2` 資料夾
|
||||||
requirements:
|
requirements:
|
||||||
- cd-folder1
|
- cd-folder1
|
||||||
condition:
|
condition:
|
||||||
pwd:
|
pwd:
|
||||||
- ^/home/commander/folder2$
|
- ^/home/commander/folder2$
|
||||||
command:
|
|
||||||
- ^cd \.\./folder2$
|
|
||||||
exceptions:
|
exceptions:
|
||||||
- condition:
|
- condition:
|
||||||
not:
|
not:
|
||||||
@@ -95,10 +93,8 @@ stages:
|
|||||||
requirements:
|
requirements:
|
||||||
- cd-folder2
|
- cd-folder2
|
||||||
condition:
|
condition:
|
||||||
pwd:
|
output:
|
||||||
- ^/home/commander/folder2$
|
- file1.txt
|
||||||
command:
|
|
||||||
- ^ls \.\.\/folder1$
|
|
||||||
exceptions:
|
exceptions:
|
||||||
- condition:
|
- condition:
|
||||||
not:
|
not:
|
||||||
@@ -107,7 +103,7 @@ stages:
|
|||||||
responses:
|
responses:
|
||||||
- type: narrative
|
- type: narrative
|
||||||
content:
|
content:
|
||||||
- 請先回到 `folder2` 資料夾,並用指定的方式查看 `folder1` 資料夾的內容。
|
- 進到 `folder1` 資料夾並用 `ls` 查看內容。
|
||||||
responses:
|
responses:
|
||||||
- content:
|
- content:
|
||||||
- 很好,你現在知道如何運用相對路徑了。
|
- 很好,你現在知道如何運用相對路徑了。
|
||||||
|
|||||||
Reference in new issue
Block a user