X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Finstall.sh;h=affa715ffb5f802b310cd0878f15ec0be872a662;hb=7c553a6017c64d98017a6010dc6e77d22ab72da4;hp=de1fb8f650b57bf21a1baa67f990ff3f3ae6d6dc;hpb=a48ff25d4c9f99dfb8ec1a9a1ae296417af6d9c9;p=github%2Fwallabag%2Fwallabag.git diff --git a/scripts/install.sh b/scripts/install.sh index de1fb8f6..affa715f 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -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))