Bring back the buttons

This commit is contained in:
DaXcess
2023-02-21 14:45:59 +01:00
parent 22dde966b5
commit da1d0d1fec
18 changed files with 752 additions and 160 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
RED='\033[0;31m'
BRED='\033[1;31m'
NC='\033[0m'
diff=$(cargo clippy --all -- -D warnings -D clippy::unwrap_used)
result=$?
if [[ ${result} -ne 0 ]] ; then
echo -e "\n${BRED}Cannot commit:${NC} There are some clippy issues in your code, check the above output for any errors."
exit 1
fi
exit 0