X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fdev.sh;h=0703ced1ef9111ef4c08d055db471fb43f50fad3;hb=0452e869ec0e3d336337f815da346346c860d914;hp=fa3b2d5d5de32509e2e4160fd7a8b64ad9407c7f;hpb=069d39dfaffdc99db44d578250cd366b1af69fd6;p=github%2Fwallabag%2Fwallabag.git diff --git a/scripts/dev.sh b/scripts/dev.sh index fa3b2d5d..0703ced1 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