Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
@@ -128,7 +128,7 @@ else
fi
# check for NotNull
- if [[ $(grep org.jetbrains.annotations src/main/* -ir -c) -gt 0 ]] ; then
+ if [[ $(grep org.jetbrains.annotations src/main/* -irl | wc -l) -gt 0 ]] ; then
notNull="org.jetbrains.annotations.NotNull is used. Please use androidx.annotation.NonNull instead.<br><br>"
@@ -146,7 +146,7 @@ else
exit $lintValue
- if [ $notNull -gt 0 ]; then
+ if [ -z "$notNull" ]; then
exit 1