nextcloud-android/scripts/analysis/detectNewJavaFiles.sh

12 lines
227 B
Bash
Raw Normal View History

#!/bin/bash
count=$(grep \.java\" -c "$HOME"/files_added.json)
if [ "$count" -eq 0 ] ; then
exit 0
else
echo "New Java files detected! Please use Kotlin for new files. Number of new Java files: $count"
exit 1
fi