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
77 echo " Provide ktlint version in KTLINT_VERSION env variable"
88 exit 1
99fi
10- echo " Installing detekt"
10+ echo " Installing detekt $DETEKT_VERSION "
1111jar_destination=" ${HOME} /.local/lib/detekt"
1212mkdir -p ${jar_destination}
1313curl -sSL -o ${jar_destination} /detekt-cli.jar " https://github.com/detekt/detekt/releases/download/v${DETEKT_VERSION} /detekt-cli-${DETEKT_VERSION} -all.jar"
1414
1515entrypoint_script=" ${HOME} /.local/bin/detekt-cli"
1616cat > " $entrypoint_script " << EOM
17- #!/bin/bash
1817java -jar ${jar_destination} /detekt-cli.jar \$ @
1918EOM
2019chmod +x " $entrypoint_script "
2120detekt-cli --version
2221
23- echo " Installing ktlint"
22+ echo " Installing ktlint $KTLINT_VERSION "
2423curl -sSLO " https://github.com/pinterest/ktlint/releases/download/$KTLINT_VERSION /ktlint" && chmod a+x ktlint && mv ktlint ~ /.local/bin/
2524ktlint --version
You can’t perform that action at this time.
0 commit comments