mirror of
https://github.com/nextcloud/android.git
synced 2024-12-18 23:11:58 +03:00
12 lines
227 B
Bash
12 lines
227 B
Bash
|
#!/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
|
||
|
|