mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
071c012f85
* replace tab with 4 space in java files * revise error message in shell script * print result before checking * revise grep expression
13 lines
260 B
Bash
Executable File
13 lines
260 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# grep for \t in the generators
|
|
RESULT=`find modules/swagger-codegen/src/ -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
|
|
|