mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Hotfix: Pre-commit hook failure message
This commit is contained in:
parent
40571e7f34
commit
0313c09562
@ -6,11 +6,12 @@ echo "Running lint..."
|
||||
|
||||
status=$?
|
||||
|
||||
if [ "$status" = 0 ] ; then
|
||||
if [[ "$status" = 0 ]] ; then
|
||||
echo "Static analysis found no problems."
|
||||
exit 0
|
||||
else
|
||||
./gradlew app:ktlintKiwixDebugFormat --daemon
|
||||
echo 1>&2 "Static analysis found violations and attempted to autofix, please commit these autoformat changes"
|
||||
echo "If the build failed for another reason please make sure JAVA_HOME is set to JDK8"
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user