Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: `then` on it's own line
Lorenz Leutgeb committed 22 days ago
commit 8cca187d909475258e88b22bc911d298c3c89760
parent 3c7e9fc29a7557b6db0c2cf0ec794d19f97a35bb
1 file changed +2 -1
modified scripts/git-hook-template.sh
@@ -18,7 +18,8 @@ mapfile -t CHANGED_FILES < <(comm -12 \
    <(IFS=$'\n'; echo "${SENSITIVE_FILES[*]}" | sort) \
)

-
if [ ${#CHANGED_FILES[@]} -gt 0 ]; then
+
if [ ${#CHANGED_FILES[@]} -gt 0 ]
+
then
    echo "⚠️ WARNING: Sensitive files have been modified relative to $BASE_BRANCH."
    echo "Executing this hook may run arbitrary code from the modified files."
    echo ""