X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fdev.sh;fp=scripts%2Fdev.sh;h=233830e7c5d79ba4f19abe71e151fb4f31cc3d1b;hb=038469e73f651621e8a5c12cf089d0c239031b57;hp=fa3b2d5d5de32509e2e4160fd7a8b64ad9407c7f;hpb=f74061f1e1e70f8f1ec1fb72f7cf6e1ed388023c;p=github%2Fwallabag%2Fwallabag.git diff --git a/scripts/dev.sh b/scripts/dev.sh index fa3b2d5d..233830e7 100644 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -1,11 +1,11 @@ -#! /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' -DIR="${BASH_SOURCE%/*}" -if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi +DIR="${BASH_SOURCE}" +if [[ ! -d "$DIR" ]]; then DIR="$PWD/scripts"; fi . "$DIR/require.sh" $COMPOSER_COMMAND install