Skip to content
Snippets Groups Projects
Commit cab5cf1e authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

fixed exit code to match when success occurs

parent b97bb831
No related branches found
No related tags found
No related merge requests found
Pipeline #2572 failed
#!/bin/bash
#
# globals
#
passes=0
fails=0
source cfi_all_configs.sh
get_correct()
......@@ -63,12 +70,12 @@ protect()
clean()
{
rm out
rm correct
rm -f out
rm -f correct
rm -Rf dude.exe* peasoup_exe* lib*.so*
for config in "${configs[@]}"; do
rm *."$config"
rm -f *."$config"
done
}
......@@ -81,8 +88,10 @@ report ()
if grep -q "Warning " ./dude_protection_log.txt
then
echo PROTECTION WARNINGS DETECTED!
exit 1
else
echo ALL PROTECTIONS SUCCESSFUL
exit 0
fi
}
......@@ -111,8 +120,6 @@ main()
fi
}
passes=0
fails=0
main $*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment