mirror of https://github.com/01-edu/public.git
docs(file-struct): fixing test and removing folders
This commit is contained in:
parent
2ee882e8a2
commit
d8e7a606f0
|
@ -7,10 +7,10 @@ IFS='
|
|||
|
||||
print_content() {
|
||||
mkdir -p uncompressed
|
||||
tar -xpf done.tar -C uncompressed
|
||||
tar -xpf file-struct.tar -C uncompressed
|
||||
tree uncompressed
|
||||
}
|
||||
|
||||
submitted=$(cd student/struct && print_content)
|
||||
expected=$(cd solutions/struct && print_content)
|
||||
submitted=$(cd student && print_content)
|
||||
expected=$(cd solutions && print_content)
|
||||
diff <(echo "$submitted") <(echo "$expected")
|
||||
|
|
|
@ -23,15 +23,15 @@ struct/
|
|||
└── text3.txt
|
||||
```
|
||||
|
||||
Once it is done, use the command below to create the file `done.tar` to be submitted.
|
||||
Once it is done, use the command below to create the file `file-struct.tar` to be submitted.
|
||||
|
||||
```console
|
||||
$ tar -cf done.tar *
|
||||
$ tar -cf file-struct.tar *
|
||||
$ ls
|
||||
0 1 2 3 4 5 6 7 8 9 A done.tar
|
||||
0 1 2 3 4 5 6 7 8 9 A file-struct.tar
|
||||
```
|
||||
|
||||
**Only `done.tar` should be submitted.**
|
||||
**Only `file-struct.tar` should be submitted.**
|
||||
|
||||
### Hints
|
||||
|
||||
|
|
Loading…
Reference in New Issue