quantum init

This commit is contained in:
zhaoxiaomeng
2018-01-04 13:38:57 +08:00
committed by Simon
parent d11f845fde
commit 53af3b51ae
2361 changed files with 387455 additions and 144458 deletions

View File

@@ -0,0 +1,22 @@
#!/bin/bash
retvalue=0
if [[ $(find . -name '*.[ch]' -exec grep -H bzero {} \;) ]];
then
tput setaf 1;
echo "Code uses banned functions (bzero).";
tput sgr 0
retvalue=1;
fi;
# can add more checks here by copying the above code block
if [[ $retvalue == 0 ]];
then
tput setaf 2;
echo "Code does not use banned functions.";
tput sgr 0
fi;
exit $retvalue;