mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
quest: fix checkpoint-03
This commit is contained in:
1 parent
b73607fb8d
commit
dcf72d046c
4 files changed
+10
-7
No files matched your search
@@ -1,4 +1,7 @@
|
||||
FROM linuxodyssey/quest-base
|
||||
|
||||
COPY home ${HOME}
|
||||
RUN chmod +W /folder
|
||||
USER root
|
||||
COPY home .
|
||||
RUN chown -R ${USERNAME}:${USERNAME} .
|
||||
|
||||
USER ${USERNAME}
|
||||
@@ -50,7 +50,7 @@ stages:
|
||||
responses:
|
||||
- type: narrative
|
||||
content: |
|
||||
請複製 `folder` 資料夾中的檔案,並命名為 `world.txt`。
|
||||
請複製 `folder` 資料夾中的檔案到 `folder` 中,並命名為 `world.txt` 。
|
||||
|
||||
- id: cp-hello-world
|
||||
task: 複製 `folder` 中的檔案並命名為 `world.txt`
|
||||
@@ -58,7 +58,7 @@ stages:
|
||||
- ls-~
|
||||
condition:
|
||||
command:
|
||||
- ^cp \Shello.txt \Sworld.txt$
|
||||
- ^cp .*hello.txt .*world.txt$
|
||||
files:
|
||||
- path: /home/commander/folder/hello.txt
|
||||
type: file
|
||||
@@ -75,7 +75,7 @@ stages:
|
||||
- cp-hello-world
|
||||
condition:
|
||||
command:
|
||||
- ^rm \Shello.txt$
|
||||
- ^rm .*hello.txt$
|
||||
files:
|
||||
- path: /home/commander/folder/hello.txt
|
||||
type: file
|
||||
|
||||
@@ -1 +1 @@
|
||||
This is `hello.txt`.
|
||||
This is `hello.txt`.
|
||||
@@ -1 +1 @@
|
||||
aHR0cHM6Ly9yZXVybC5jYy9YUjZZMDA=
|
||||
aHR0cHM6Ly9yZXVybC5jYy9YUjZZMDA=
|
||||
Reference in new issue
Block a user