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 21 days ago
commit 7fe6f4d66203920f46109cf587acdf3fa6889422
parent c9834ed3be16169c8eaca51ad2c77e5f01445913
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