From 69ccabacdd76c1c6e132707ab887a96a61781965 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Wed, 15 Apr 2026 14:54:55 +0100 Subject: [PATCH] just: Use bash to perform install-hook confirmation The `[confirm()]` tag had issues on linux with string interpolation, switches to using a bash based read for confirmation. --- justfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index a1d8bcf5..8e59be88 100644 --- a/justfile +++ b/justfile @@ -148,10 +148,11 @@ verify-tool tool package_name="": # # Install git hooks [group('hooks')] -[confirm("Overwrite existing hooks '" + hooks + "'?")] install-hooks: #!/usr/bin/env bash set -e + read -p "Overwrite existing hooks '{{hooks}}'? [y/N] " confirm + [[ "$confirm" == "y" ]] || exit 1 for hook in {{hooks}}; do if [ -f ".git/hooks/$hook" ]; then rm ".git/hooks/$hook"