Skip to content

Commit b8256fb

Browse files
committed
Fixed code style warnings
1 parent 4e7c184 commit b8256fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/git-hooks/pre-commit.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/bin/sh
22
echo "Running static analysis..."
33

4-
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
4+
JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
5+
export JAVA_HOME
56

67
OUTPUT="/tmp/analysis-result"
78
./gradlew detekt ktlint lintDevDebug spotlessCheck --daemon > ${OUTPUT}
89
EXIT_CODE=$?
9-
if [[ ${EXIT_CODE} -ne 0 ]]; then
10+
if [ ${EXIT_CODE} -ne 0 ]; then
1011
cat ${OUTPUT}
1112
rm ${OUTPUT}
1213
echo "*********************************************"

0 commit comments

Comments
 (0)