From 038469e73f651621e8a5c12cf089d0c239031b57 Mon Sep 17 00:00:00 2001 From: FoxMaSk Date: Sun, 30 Oct 2016 22:38:38 +0100 Subject: fix path for in install scripts --- scripts/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/install.sh') 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 -- cgit v1.2.3