From 62b8fa76b5dec883805e2a16a91f6c1d8e8c8e58 Mon Sep 17 00:00:00 2001 From: Shubert Munthali Date: Sun, 7 Jul 2024 19:24:45 +0200 Subject: [PATCH] Fix pre-commit hook for UNIX systems --- app/app-scripts/{pre-commit => pre-commit-unix} | 0 app/build.gradle | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename app/app-scripts/{pre-commit => pre-commit-unix} (100%) diff --git a/app/app-scripts/pre-commit b/app/app-scripts/pre-commit-unix similarity index 100% rename from app/app-scripts/pre-commit rename to app/app-scripts/pre-commit-unix diff --git a/app/build.gradle b/app/build.gradle index 76d1988c..e71e4a86 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -225,7 +225,7 @@ tasks.register('ktlintCheck', JavaExec) { } tasks.register('installGitHook', Copy) { - def suffix = "linux" + def suffix = "unix" if (Os.isFamily(Os.FAMILY_WINDOWS)) { suffix = "windows" } @@ -239,4 +239,4 @@ tasks.preBuild.dependsOn ktlintCheck tasks.ktlintCheck.dependsOn ktlintFormat -build.dependsOn installGitHook +tasks.preBuild.dependsOn installGitHook