From 3f273337cc487fe93e815b26fa53e7819a12c95d Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Wed, 7 Feb 2024 15:26:27 +0000 Subject: [PATCH] shell/lisa_shell: Fix hook dir mkdir call --- shell/lisa_shell | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/lisa_shell b/shell/lisa_shell index 9a0e03493..e85631fbd 100755 --- a/shell/lisa_shell +++ b/shell/lisa_shell @@ -215,7 +215,7 @@ function _lisa-copy-git-hook { # Avoid overriding existing hooks unless they are provided by LISA if [[ ! -e "$dst" ]] || grep -q 'LISA-HOOK' "$dst"; then - mkdir -p "$(basename "$dst")" && + mkdir -p "$(dirname "$dst")" && cp -v "$src" "$dst" else echo "WARNING: Could not install git hook, as it is user-provided: $src => $dst" -- GitLab