From 1f59c3999622411cb5b3ef1e21fae1ceb4ab1977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Roche?= Date: Wed, 22 Jan 2025 18:55:29 +0100 Subject: [PATCH] bump hamo --- .husky/_/post-merge | 19 +++++++++++-------- .husky/_/pre-commit | 19 +++++++++++-------- .husky/_/prepare-commit-msg | 19 +++++++++++-------- 3 files changed, 33 insertions(+), 24 deletions(-) diff --git a/.husky/_/post-merge b/.husky/_/post-merge index 17d41eff..1bcb0565 100755 --- a/.husky/_/post-merge +++ b/.husky/_/post-merge @@ -13,22 +13,25 @@ call_lefthook() if test -n "$LEFTHOOK_BIN" then "$LEFTHOOK_BIN" "$@" - elif lefthook -h >/dev/null 2>&1 + elif lefthook.exe -h >/dev/null 2>&1 then - lefthook "$@" + lefthook.exe "$@" + elif lefthook.bat -h >/dev/null 2>&1 + then + lefthook.bat "$@" else dir="$(git rev-parse --show-toplevel)" osArch=$(uname | tr '[:upper:]' '[:lower:]') cpuArch=$(uname -m | sed 's/aarch64/arm64/;s/x86_64/x64/') - if test -f "$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook" + if test -f "$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook.exe" then - "$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook" "$@" - elif test -f "$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook" + "$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook.exe" "$@" + elif test -f "$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook.exe" then - "$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook" "$@" - elif test -f "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook" + "$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook.exe" "$@" + elif test -f "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook.exe" then - "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook" "$@" + "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook.exe" "$@" elif test -f "$dir/node_modules/lefthook/bin/index.js" then "$dir/node_modules/lefthook/bin/index.js" "$@" diff --git a/.husky/_/pre-commit b/.husky/_/pre-commit index 4855f612..c025f6be 100755 --- a/.husky/_/pre-commit +++ b/.husky/_/pre-commit @@ -13,22 +13,25 @@ call_lefthook() if test -n "$LEFTHOOK_BIN" then "$LEFTHOOK_BIN" "$@" - elif lefthook -h >/dev/null 2>&1 + elif lefthook.exe -h >/dev/null 2>&1 then - lefthook "$@" + lefthook.exe "$@" + elif lefthook.bat -h >/dev/null 2>&1 + then + lefthook.bat "$@" else dir="$(git rev-parse --show-toplevel)" osArch=$(uname | tr '[:upper:]' '[:lower:]') cpuArch=$(uname -m | sed 's/aarch64/arm64/;s/x86_64/x64/') - if test -f "$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook" + if test -f "$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook.exe" then - "$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook" "$@" - elif test -f "$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook" + "$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook.exe" "$@" + elif test -f "$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook.exe" then - "$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook" "$@" - elif test -f "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook" + "$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook.exe" "$@" + elif test -f "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook.exe" then - "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook" "$@" + "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook.exe" "$@" elif test -f "$dir/node_modules/lefthook/bin/index.js" then "$dir/node_modules/lefthook/bin/index.js" "$@" diff --git a/.husky/_/prepare-commit-msg b/.husky/_/prepare-commit-msg index 2655902b..c3493905 100755 --- a/.husky/_/prepare-commit-msg +++ b/.husky/_/prepare-commit-msg @@ -13,22 +13,25 @@ call_lefthook() if test -n "$LEFTHOOK_BIN" then "$LEFTHOOK_BIN" "$@" - elif lefthook -h >/dev/null 2>&1 + elif lefthook.exe -h >/dev/null 2>&1 then - lefthook "$@" + lefthook.exe "$@" + elif lefthook.bat -h >/dev/null 2>&1 + then + lefthook.bat "$@" else dir="$(git rev-parse --show-toplevel)" osArch=$(uname | tr '[:upper:]' '[:lower:]') cpuArch=$(uname -m | sed 's/aarch64/arm64/;s/x86_64/x64/') - if test -f "$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook" + if test -f "$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook.exe" then - "$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook" "$@" - elif test -f "$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook" + "$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook.exe" "$@" + elif test -f "$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook.exe" then - "$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook" "$@" - elif test -f "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook" + "$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook.exe" "$@" + elif test -f "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook.exe" then - "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook" "$@" + "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook.exe" "$@" elif test -f "$dir/node_modules/lefthook/bin/index.js" then "$dir/node_modules/lefthook/bin/index.js" "$@"