]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - scripts/install.sh
Properly source require.sh
[github/wallabag/wallabag.git] / scripts / install.sh
index de1fb8f650b57bf21a1baa67f990ff3f3ae6d6dc..affa715ffb5f802b310cd0878f15ec0be872a662 100755 (executable)
@@ -25,10 +25,14 @@ if [ "$IGNORE_ROOT" -eq 0 ] && [ "$EUID" == "0" ]; then
 fi
 
 COMPOSER_COMMAND='composer'
+REQUIRE_FILE='scripts/require.sh'
 
-DIR="${BASH_SOURCE}"
-if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi
-. "$DIR/require.sh"
+if [ ! -f "$REQUIRE_FILE" ]; then
+  echo "Cannot find $REQUIRE_FILE"
+  exit 1
+fi
+
+. "$REQUIRE_FILE"
 
 TAG=$(git describe --tags $(git rev-list --tags --max-count=1))