mirror of https://github.com/01-edu/public.git
docs(master-the-ls): fix readme and change to script instead of a file
This commit is contained in:
parent
3112b89373
commit
fc197de5fd
|
@ -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")
|
||||
}
|
||||
|
|
|
@ -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 "..".
|
||||
|
|
Loading…
Reference in New Issue