Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiszaher committed Oct 16, 2023
1 parent 8f6f406 commit f487908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ ktlint_version=$(ktlint --version)
echo "ktlint version: $ktlint_version"

if [ "$(printf '%s\n' "0.49.1" "$ktlint_version" | sort -V | head -n1)" = "0.49.1" ]; then
# --code-style is deprecated and .editorconfig needs to be used: https://pinterest.github.io/ktlint/latest/rules/code-styles/
if [ "$(printf '%s\n' "0.50.0" "$ktlint_version" | sort -V | head -n1)" = "0.50.0" ]; then
# --code-style is deprecated since 1.0.1 and .editorconfig needs to be used: https://pinterest.github.io/ktlint/latest/rules/code-styles/
if [ "$(printf '%s\n' "0.50.0" "$ktlint_version" | sort -V | tail -n1)" = "1.0.0" ]; then
if [ "$INPUT_ANDROID" = true ]; then
export ANDROID="--code-style=android_studio"
else
Expand Down

0 comments on commit f487908

Please sign in to comment.