fix(devops): fix folder in the hard-perm exercise

remove unnecessary test in the exercise in-the-dark
add clarification in the readme of in-the-dark
This commit is contained in:
miguel 2023-01-18 17:30:29 +00:00 committed by MSilva95
parent b1db3597f9
commit 8ce0dfcac1
3 changed files with 2 additions and 3 deletions

View File

View File

@ -12,14 +12,13 @@ challenge() {
submitted=$(cd "$1" && bash "$script_dirS"/$FILENAME)
expected=$(cd "$1" && bash "$script_dirS"/solutions/in-the-dark.sh)
diff <(echo "$submitted") <(echo "$expected")
echo $submitted
}
# True if FILE exists and is a regular file
if [ -f ${FILENAME} ]; then
# FILE exists and it's not empty
if [ -s ${FILENAME} ]; then
challenge ../../subjects
challenge .
else
echo "The file exist but is empty"

View File

@ -10,7 +10,7 @@ Expected output:
```console
$ ./in-the-dark.sh
[1]+ Running "Your running job"
[1]+ Running "Your running job, this is just an example of output"
news_amazon.txt
model_forecasts.txt
Ecommerce_purchases.txt