X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Finstall.sh;fp=scripts%2Finstall.sh;h=e131929ce74dee0523564365508dbf93caec2c58;hb=038469e73f651621e8a5c12cf089d0c239031b57;hp=7a1f02bd80888c65fe7c97a2c33cc3e7346bd110;hpb=f74061f1e1e70f8f1ec1fb72f7cf6e1ed388023c;p=github%2Fwallabag%2Fwallabag.git diff --git a/scripts/install.sh b/scripts/install.sh index 7a1f02bd..e131929c 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