mirror of https://github.com/01-edu/public.git
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:
parent
b1db3597f9
commit
8ce0dfcac1
|
@ -12,14 +12,13 @@ challenge() {
|
||||||
submitted=$(cd "$1" && bash "$script_dirS"/$FILENAME)
|
submitted=$(cd "$1" && bash "$script_dirS"/$FILENAME)
|
||||||
expected=$(cd "$1" && bash "$script_dirS"/solutions/in-the-dark.sh)
|
expected=$(cd "$1" && bash "$script_dirS"/solutions/in-the-dark.sh)
|
||||||
diff <(echo "$submitted") <(echo "$expected")
|
diff <(echo "$submitted") <(echo "$expected")
|
||||||
|
echo $submitted
|
||||||
}
|
}
|
||||||
|
|
||||||
# True if FILE exists and is a regular file
|
# True if FILE exists and is a regular file
|
||||||
if [ -f ${FILENAME} ]; then
|
if [ -f ${FILENAME} ]; then
|
||||||
# FILE exists and it's not empty
|
# FILE exists and it's not empty
|
||||||
if [ -s ${FILENAME} ]; then
|
if [ -s ${FILENAME} ]; then
|
||||||
challenge ../../subjects
|
|
||||||
|
|
||||||
challenge .
|
challenge .
|
||||||
else
|
else
|
||||||
echo "The file exist but is empty"
|
echo "The file exist but is empty"
|
||||||
|
|
|
@ -10,7 +10,7 @@ Expected output:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ ./in-the-dark.sh
|
$ ./in-the-dark.sh
|
||||||
[1]+ Running "Your running job"
|
[1]+ Running "Your running job, this is just an example of output"
|
||||||
news_amazon.txt
|
news_amazon.txt
|
||||||
model_forecasts.txt
|
model_forecasts.txt
|
||||||
Ecommerce_purchases.txt
|
Ecommerce_purchases.txt
|
||||||
|
|
Loading…
Reference in New Issue