File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 46
46
gradle-version : wrapper
47
47
- name : Setup format tools
48
48
run : |
49
- ./gradlew --dry-run # download wrapper if needed
49
+ ./gradlew --dry-run -q # download wrapper if needed
50
50
export DETEKT_VERSION=$(./gradlew --console plain -q printDetektVersion)
51
51
export KTLINT_VERSION=$(./gradlew --console plain -q printKtlintVersion)
52
52
./scripts/install-format-tools.sh
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ if [[ "$KTLINT_VERSION" == "" ]]; then
7
7
echo " Provide ktlint version in KTLINT_VERSION env variable"
8
8
exit 1
9
9
fi
10
+ mkdir ${HOME} /.local/bin
10
11
echo " Installing detekt $DETEKT_VERSION "
11
12
jar_destination=" ${HOME} /.local/lib/detekt"
12
13
mkdir -p ${jar_destination}
@@ -20,5 +21,5 @@ chmod +x "$entrypoint_script"
20
21
detekt-cli --version
21
22
22
23
echo " Installing ktlint $KTLINT_VERSION "
23
- curl -sSLO " https://github.com/pinterest/ktlint/releases/download/$KTLINT_VERSION /ktlint" && chmod a+x ktlint && mv ktlint ~ /.local/bin/
24
+ curl -sSLO " https://github.com/pinterest/ktlint/releases/download/$KTLINT_VERSION /ktlint" && chmod a+x ktlint && mv ktlint ${HOME} /.local/bin/
24
25
ktlint --version
You can’t perform that action at this time.
0 commit comments