From fc197de5fd2ef78ec88144c20b3407f1e2ef9fc5 Mon Sep 17 00:00:00 2001 From: miguel Date: Thu, 15 Dec 2022 14:16:08 +0000 Subject: [PATCH] docs(master-the-ls): fix readme and change to script instead of a file --- sh/tests/master-the-ls_test.sh | 4 ++-- sh/tests/solutions/{master-the-ls => master-the-ls.sh} | 0 subjects/devops/master-the-ls/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename sh/tests/solutions/{master-the-ls => master-the-ls.sh} (100%) diff --git a/sh/tests/master-the-ls_test.sh b/sh/tests/master-the-ls_test.sh index 088cd52dc..2cc783adb 100755 --- a/sh/tests/master-the-ls_test.sh +++ b/sh/tests/master-the-ls_test.sh @@ -8,8 +8,8 @@ IFS=' script_dirS=$(cd -P "$(dirname "$BASH_SOURCE")" &>/dev/null && pwd) challenge() { - submitted=$(cd "$1" && bash "$script_dirS"/student/master-the-ls) - expected=$(cd "$1" && bash "$script_dirS"/solutions/master-the-ls) + submitted=$(cd "$1" && bash "$script_dirS"/student/master-the-ls.sh) + expected=$(cd "$1" && bash "$script_dirS"/solutions/master-the-ls.sh) diff <(echo "$submitted") <(echo "$expected") } diff --git a/sh/tests/solutions/master-the-ls b/sh/tests/solutions/master-the-ls.sh similarity index 100% rename from sh/tests/solutions/master-the-ls rename to sh/tests/solutions/master-the-ls.sh diff --git a/subjects/devops/master-the-ls/README.md b/subjects/devops/master-the-ls/README.md index 51f9c3bfb..3f7975238 100644 --- a/subjects/devops/master-the-ls/README.md +++ b/subjects/devops/master-the-ls/README.md @@ -2,7 +2,7 @@ ### Instructions -Put in a file `master-the-ls`, the command line that will: +Create a script `master-the-ls`, that will do the following: - list the files and directories of the current directory. - Ignore the hidden files, the "." and the "..".