Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: Check for file before removing
Fintan Halpenny committed 23 days ago
commit 1dd859a630f6a753e2f903695a26d9567a3956a1
parent b39095e8a2cb89a4c1f59d0cf771f1a2c8b9e9a5
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