aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/pre-push-hook.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/pre-push-hook.sh b/scripts/pre-push-hook.sh
index 9cfbc9e1..6580b9c7 100644
--- a/scripts/pre-push-hook.sh
+++ b/scripts/pre-push-hook.sh
@@ -7,8 +7,12 @@ set -o pipefail
ZERO="0000000000000000000000000000000000000000"
GRADLE_EXEC="${GRADLE_EXEC:-./gradlew}"
-while read local_ref local_oid remote_ref remote_oid; do
+while read -r local_ref local_oid remote_ref remote_oid; do
+ # These useless assignments are to silence warnings from shellcheck about unused variables
+ _=$local_ref
+ _=$remote_ref
+ _=$remote_oid
if [ "${local_oid}" != "${ZERO}" ]; then
- "${GRADLE_EXEC}" apiCheck detekt spotlessCheck test -PslimTests
+ "${GRADLE_EXEC}" metalavaCheckCompatibilityRelease detekt spotlessCheck test -PslimTests
fi
done