aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/require.sh
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-06-12 21:33:53 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-06-14 10:13:40 +0200
commit7a82953b3e34e07df2a6ac8b09d01b47db5da879 (patch)
tree0c20a31eba8f76e638f455cd7984c55541ad245f /scripts/require.sh
parent50bcf225e906f0a499f741fc1407715e966d28f5 (diff)
downloadwallabag-7a82953b3e34e07df2a6ac8b09d01b47db5da879.tar.gz
wallabag-7a82953b3e34e07df2a6ac8b09d01b47db5da879.tar.zst
wallabag-7a82953b3e34e07df2a6ac8b09d01b47db5da879.zip
Check if .git directory exist
If that folder doesn’t exist, it means the udpate script won’t be able to run because it uses git to retrieve the update.
Diffstat (limited to 'scripts/require.sh')
-rwxr-xr-xscripts/require.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/require.sh b/scripts/require.sh
index c48ab936..63c38132 100755
--- a/scripts/require.sh
+++ b/scripts/require.sh
@@ -1,6 +1,6 @@
1#! /usr/bin/env bash 1#! /usr/bin/env bash
2# File used to check dependencies
3 2
3# Check for composer
4if [ ! -f composer.phar ]; then 4if [ ! -f composer.phar ]; then
5 echo "composer.phar not found, we'll see if composer is installed globally." 5 echo "composer.phar not found, we'll see if composer is installed globally."
6 command -v composer >/dev/null 2>&1 || { echo >&2 "wallabag requires composer but it's not installed (see http://doc.wallabag.org/en/master/user/installation.html). Aborting."; exit 1; } 6 command -v composer >/dev/null 2>&1 || { echo >&2 "wallabag requires composer but it's not installed (see http://doc.wallabag.org/en/master/user/installation.html). Aborting."; exit 1; }