cka-SVV/labs/exam2-task5.sh
sandervanvugt db0687d4e2 message
2024-11-24 06:03:51 -08:00

9 lines
250 B
Bash

if grep 'ERROR.*uninitialized' /tmp/failingdb.log
then
echo -e "\033[32m[OK]\033[0m\t\t correct error output was found"
SCORE=$(( SCORE + 10 ))
else
echo -e "\033[31m[FAIL]\033[0m\t\t correct error output was not found"
fi
TOTAL=$(( TOTAL + 10 ))