File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,18 @@ if [[ "$KTLINT_VERSION" == "" ]]; then
7
7
echo " Provide ktlint version in KTLINT_VERSION env variable"
8
8
exit 1
9
9
fi
10
- echo " Installing detekt"
10
+ echo " Installing detekt $DETEKT_VERSION "
11
11
jar_destination=" ${HOME} /.local/lib/detekt"
12
12
mkdir -p ${jar_destination}
13
13
curl -sSL -o ${jar_destination} /detekt-cli.jar " https://github.com/detekt/detekt/releases/download/v${DETEKT_VERSION} /detekt-cli-${DETEKT_VERSION} -all.jar"
14
14
15
15
entrypoint_script=" ${HOME} /.local/bin/detekt-cli"
16
16
cat > " $entrypoint_script " << EOM
17
- #!/bin/bash
18
17
java -jar ${jar_destination} /detekt-cli.jar \$ @
19
18
EOM
20
19
chmod +x " $entrypoint_script "
21
20
detekt-cli --version
22
21
23
- echo " Installing ktlint"
22
+ echo " Installing ktlint $KTLINT_VERSION "
24
23
curl -sSLO " https://github.com/pinterest/ktlint/releases/download/$KTLINT_VERSION /ktlint" && chmod a+x ktlint && mv ktlint ~ /.local/bin/
25
24
ktlint --version
You can’t perform that action at this time.
0 commit comments