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
4 files changed
+10 -7

No files matched your search

+5 -2
View File
@@ -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}
+3 -3
View File
@@ -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
View File
@@ -1 +1 @@
This is `hello.txt`.
This is `hello.txt`.
@@ -1 +1 @@
aHR0cHM6Ly9yZXVybC5jYy9YUjZZMDA=
aHR0cHM6Ly9yZXVybC5jYy9YUjZZMDA=