diff --git a/shell/lisa_shell b/shell/lisa_shell index 9a0e034939ccb2ccd789241c01f736c4513c782b..e85631fbd673d191987e8b015ffc6b1b3e616a95 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"