fix(in-back-ground): add check for the nohup command

This commit is contained in:
miguel 2023-01-17 18:25:01 +00:00 committed by MSilva95
parent 9d0f9d4506
commit 107d7ac4ad
1 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,12 @@ challenge_no_output() {
expected=$(cd "$1" && bash "$script_dirS"/solutions/in-back-ground.sh)
diff <(echo "$submitted") <(echo "$expected")
}
if [[ $(cat $FILENAME | grep 'nohup' | wc -l) -lt 1 ]]; then
echo "The file does not contain the required commands"
exit 1
fi
challenge .
rm output.txt