aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-04-23 11:52:25 +0200
committerFlorian Dold <florian@dold.me>2021-04-23 11:52:25 +0200
commite7ab678e50cd9569b21dcc0d3864bb1cd539a6f0 (patch)
treed7f544b515e57f4724a9fe19f74d5903cc7e8ca3
parent5f914a980ce398be8c28708b6910944e2beb74c1 (diff)
make sure that bootstrap succeeds despite failing commands
-rwxr-xr-xbootstrap4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap b/bootstrap
index 23e2cbce..7a3f340c 100755
--- a/bootstrap
+++ b/bootstrap
@@ -22,9 +22,9 @@ existence()
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