Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: use bash to perform confirmation
Fintan Halpenny committed 23 days ago
commit 90f018473377de796d865113960883c55baa55e4
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"