From d8e7a606f03c9820a157e94441c021bcb2f7be7f Mon Sep 17 00:00:00 2001 From: miguel Date: Tue, 13 Dec 2022 13:00:30 +0000 Subject: [PATCH] docs(file-struct): fixing test and removing folders --- sh/tests/file-struct_test.sh | 6 +++--- .../solutions/{struct/done.tar => file-struct.tar} | Bin sh/tests/solutions/struct/0/.gitignore | 0 sh/tests/solutions/struct/1/.gitignore | 0 sh/tests/solutions/struct/2/.gitignore | 0 sh/tests/solutions/struct/3/text.txt | 0 sh/tests/solutions/struct/4/text2.txt | 0 sh/tests/solutions/struct/5/.gitignore | 0 sh/tests/solutions/struct/6/.gitignore | 0 sh/tests/solutions/struct/7/.gitignore | 0 sh/tests/solutions/struct/8/.gitignore | 0 sh/tests/solutions/struct/9/.gitignore | 0 sh/tests/solutions/struct/A/text3.txt | 0 subjects/devops/file-struct/README.md | 8 ++++---- 14 files changed, 7 insertions(+), 7 deletions(-) rename sh/tests/solutions/{struct/done.tar => file-struct.tar} (100%) delete mode 100644 sh/tests/solutions/struct/0/.gitignore delete mode 100644 sh/tests/solutions/struct/1/.gitignore delete mode 100644 sh/tests/solutions/struct/2/.gitignore delete mode 100644 sh/tests/solutions/struct/3/text.txt delete mode 100644 sh/tests/solutions/struct/4/text2.txt delete mode 100644 sh/tests/solutions/struct/5/.gitignore delete mode 100644 sh/tests/solutions/struct/6/.gitignore delete mode 100644 sh/tests/solutions/struct/7/.gitignore delete mode 100644 sh/tests/solutions/struct/8/.gitignore delete mode 100644 sh/tests/solutions/struct/9/.gitignore delete mode 100644 sh/tests/solutions/struct/A/text3.txt diff --git a/sh/tests/file-struct_test.sh b/sh/tests/file-struct_test.sh index 963b97f1f..739f11938 100755 --- a/sh/tests/file-struct_test.sh +++ b/sh/tests/file-struct_test.sh @@ -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") diff --git a/sh/tests/solutions/struct/done.tar b/sh/tests/solutions/file-struct.tar similarity index 100% rename from sh/tests/solutions/struct/done.tar rename to sh/tests/solutions/file-struct.tar diff --git a/sh/tests/solutions/struct/0/.gitignore b/sh/tests/solutions/struct/0/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/sh/tests/solutions/struct/1/.gitignore b/sh/tests/solutions/struct/1/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/sh/tests/solutions/struct/2/.gitignore b/sh/tests/solutions/struct/2/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/sh/tests/solutions/struct/3/text.txt b/sh/tests/solutions/struct/3/text.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/sh/tests/solutions/struct/4/text2.txt b/sh/tests/solutions/struct/4/text2.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/sh/tests/solutions/struct/5/.gitignore b/sh/tests/solutions/struct/5/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/sh/tests/solutions/struct/6/.gitignore b/sh/tests/solutions/struct/6/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/sh/tests/solutions/struct/7/.gitignore b/sh/tests/solutions/struct/7/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/sh/tests/solutions/struct/8/.gitignore b/sh/tests/solutions/struct/8/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/sh/tests/solutions/struct/9/.gitignore b/sh/tests/solutions/struct/9/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/sh/tests/solutions/struct/A/text3.txt b/sh/tests/solutions/struct/A/text3.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/subjects/devops/file-struct/README.md b/subjects/devops/file-struct/README.md index e46b02679..646acea58 100644 --- a/subjects/devops/file-struct/README.md +++ b/subjects/devops/file-struct/README.md @@ -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