Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
just: Use bash to perform install-hook confirmation
Fintan Halpenny committed 23 days ago
commit 98d5f540af5c536995581983935c3b67bb93a644
parent bb8220af59c00916b7aed2133ec665da477acc34
1 file changed +2 -1
modified 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"