pre-commit-hooks/bin/ameba.sh

10 lines
125 B
Bash
Raw Permalink Normal View History

2023-06-16 17:04:21 +00:00
#!/bin/sh
2023-06-16 17:07:33 +00:00
if command -q ameba != 0; then
2023-06-16 17:04:21 +00:00
echo "Ameba needs to be installed"
exit 1
fi
2023-06-16 20:11:37 +00:00
ameba --all --fix "$@"
2023-06-16 17:04:21 +00:00
exit $?