commit 7f6de4086e5cbf38cd96d39bbee406df8750c787
parent 1c2f23f31d421e1f1cd768fe623d6045089272d6
Author: Sebastian <sebasjm@gmail.com>
Date: Tue, 27 Aug 2024 18:14:13 -0300
complete bootstrap if link already exist
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/bootstrap b/bootstrap
@@ -23,13 +23,14 @@ existence()
command -v "$1" >/dev/null 2>&1
}
+set -x
if existence uncrustify; then
echo "Installing uncrustify hook and configuration"
# Install uncrustify format symlink (if possible)
- ln -s contrib/uncrustify.cfg uncrustify.cfg 2> /dev/null
+ ln -s contrib/uncrustify.cfg uncrustify.cfg 2> /dev/null || true
# Install pre-commit hook (if possible)
- ln -s ../../contrib/uncrustify_precommit .git/hooks/pre-commit 2> /dev/null
+ ln -s ../../contrib/uncrustify_precommit .git/hooks/pre-commit 2> /dev/null || true
else
echo "Uncrustify not detected, hook not installed. Please install uncrustify if you plan on doing development"
fi