quest: fix checkpoint-03

This commit is contained in:
Chen, Tai-Lin committed 2024-08-02 11:12:30 +08:00
1 parent b73607fb8d
commit dcf72d046c
2 files changed
+8 -5

No files matched your search

+5 -2
View File
@@ -1,4 +1,7 @@
FROM linuxodyssey/quest-base FROM linuxodyssey/quest-base
COPY home ${HOME} USER root
RUN chmod +W /folder COPY home .
RUN chown -R ${USERNAME}:${USERNAME} .
USER ${USERNAME}
+3 -3
View File
@@ -50,7 +50,7 @@ stages:
responses: responses:
- type: narrative - type: narrative
content: | content: |
請複製 `folder` 資料夾中的檔案,並命名為 `world.txt`。 請複製 `folder` 資料夾中的檔案到 `folder` 中,並命名為 `world.txt` 。
- id: cp-hello-world - id: cp-hello-world
task: 複製 `folder` 中的檔案並命名為 `world.txt` task: 複製 `folder` 中的檔案並命名為 `world.txt`
@@ -58,7 +58,7 @@ stages:
- ls-~ - ls-~
condition: condition:
command: command:
- ^cp \Shello.txt \Sworld.txt$ - ^cp .*hello.txt .*world.txt$
files: files:
- path: /home/commander/folder/hello.txt - path: /home/commander/folder/hello.txt
type: file type: file
@@ -75,7 +75,7 @@ stages:
- cp-hello-world - cp-hello-world
condition: condition:
command: command:
- ^rm \Shello.txt$ - ^rm .*hello.txt$
files: files:
- path: /home/commander/folder/hello.txt - path: /home/commander/folder/hello.txt
type: file type: file