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/dev.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/dev.sh') 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 -- cgit v1.2.3 From 99692e8c3322f31fa19b010ce488f88c5f3ce43a Mon Sep 17 00:00:00 2001 From: FoxMaSk Date: Sun, 30 Oct 2016 22:46:09 +0100 Subject: fix path for in install scripts --- scripts/dev.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/dev.sh') diff --git a/scripts/dev.sh b/scripts/dev.sh index 233830e7..0703ced1 100644 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -5,7 +5,7 @@ COMPOSER_COMMAND='composer' DIR="${BASH_SOURCE}" -if [[ ! -d "$DIR" ]]; then DIR="$PWD/scripts"; fi +if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi . "$DIR/require.sh" $COMPOSER_COMMAND install -- cgit v1.2.3