detectNewJavaFiles.sh 227 B

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