mirror of
https://github.com/nextcloud/android.git
synced 2024-12-18 23:11:58 +03:00
7817a3b8d5
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me> Co-authored-by: Álvaro Brey <alvaro.brey@nextcloud.com> Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
11 lines
227 B
Bash
Executable file
11 lines
227 B
Bash
Executable file
#!/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
|
|
|