Fix red colors in pre-commit hook
@@ -8,7 +8,7 @@ NC='\033[0m' # No Color
# Check that `rustfmt` rules are not violated.
if ! cargo fmt -- --check; then
- echo "${RED}Commit error!${NC}"
+ echo -e "${RED}Commit error!${NC}"
echo "Please format the code via 'cargo fmt', cannot commit unformatted code"
exit 1
fi
@@ -17,7 +17,7 @@ VERFIER_CONTRACT_FILE="contracts/contracts/Verifier.sol"
# Check if diff for contract contains setting the `DUMMY_VERIFIER` to the true.
if git diff --cached $VERFIER_CONTRACT_FILE | grep -lq 'constant DUMMY_VERIFIER = true'; then
- echo "${RED}Commit error!${NC}"
+ echo -e "${RED}Commit error!${NC}"
echo "It seems that line 'constant DUMMY_VERIFIER = true' in 'Verifier.sol' is staged to be committed"
echo "Cannot commit the code with enabled DUMMY_VERIFIER"
echo "Please disable the DUMMY_VERIFIER and try to commit changes again"
