From ef5b43f55cd4238fc265a2fce2d907bb0b6b8bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Wed, 2 Aug 2023 09:44:14 +0200 Subject: [PATCH] Add check if git is installed Fix #3589 --- scripts/require.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/require.sh b/scripts/require.sh index 811a5c000..404875a68 100755 --- a/scripts/require.sh +++ b/scripts/require.sh @@ -7,3 +7,9 @@ if [ ! -f composer.phar ]; then else COMPOSER_COMMAND='./composer.phar' fi + +# Check for git +command -v git >/dev/null 2>&1 || +{ echo >&2 "git is not installed. We can' install wallabag"; + exit 1 +}