docs(file-struct): fixing test and removing folders

This commit is contained in:
miguel 2022-12-13 13:00:30 +00:00 committed by MSilva95
parent 2ee882e8a2
commit d8e7a606f0
14 changed files with 7 additions and 7 deletions

View File

@ -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")

View File

@ -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