openapi-generator/bin/utils/detect_tab_in_java_class.sh
2019-03-20 15:14:18 +08:00

13 lines
239 B
Bash
Executable File

#!/bin/bash
# grep for \t in the generators
RESULT=`find modules -name "*.java" | xargs grep $'\t'`
echo -e "$RESULT"
if [ "$RESULT" != "" ]; then
echo "Java files contain tab '\\t'. Please remove it and try again."
exit 1;
fi