Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
just: Check for file before removing in install-hooks
Fintan Halpenny committed 23 days ago
commit 5fa17a7159763a8dec89c80e41b8088945c87080
parent 810c0eb495b3068caf6d0c45c9df32d3b1e82b3c
1 file changed +3 -1
modified justfile
@@ -153,7 +153,9 @@ install-hooks:
    #!/usr/bin/env bash
    set -e
    for hook in {{hooks}}; do
-
        rm ".git/hooks/$hook"
+
        if [ -f ".git/hooks/$hook" ]; then
+
          rm ".git/hooks/$hook"
+
        fi
        cp {{hook-script}} ".git/hooks/$hook"
        chmod +x ".git/hooks/$hook"
    done