X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fdev.sh;h=28453be0d63cadeefbdd0e086e68b7c55bfe810b;hb=7a82953b3e34e07df2a6ac8b09d01b47db5da879;hp=fa3b2d5d5de32509e2e4160fd7a8b64ad9407c7f;hpb=c4d9a8d6d0db2be5c502e257bbeb963e3870d521;p=github%2Fwallabag%2Fwallabag.git diff --git a/scripts/dev.sh b/scripts/dev.sh old mode 100644 new mode 100755 index fa3b2d5d..28453be0 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -1,12 +1,16 @@ -#! /usr/bin/env bash +#!/usr/bin/env bash # You can execute this file to install wallabag dev environment # eg: `sh dev.sh` COMPOSER_COMMAND='composer' +REQUIRE_FILE='scripts/require.sh' -DIR="${BASH_SOURCE%/*}" -if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi -. "$DIR/require.sh" +if [ ! -f "$REQUIRE_FILE" ]; then + echo "Cannot find $REQUIRE_FILE" + exit 1 +fi + +. "$REQUIRE_FILE" $COMPOSER_COMMAND install php bin/console wallabag:install