X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Finstall.sh;h=62a46f4fb60f8100b6228cfcc0a28d6f0ff3ec23;hb=0452e869ec0e3d336337f815da346346c860d914;hp=7a1f02bd80888c65fe7c97a2c33cc3e7346bd110;hpb=069d39dfaffdc99db44d578250cd366b1af69fd6;p=github%2Fwallabag%2Fwallabag.git diff --git a/scripts/install.sh b/scripts/install.sh index 7a1f02bd..62a46f4f 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,11 +1,11 @@ -#! /usr/bin/env bash +#!/usr/bin/env bash # You can execute this file to install wallabag # eg: `sh install.sh prod` 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" ENV=$1