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/update.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/update.sh') diff --git a/scripts/update.sh b/scripts/update.sh index 45e93f36..6fff8a72 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -1,11 +1,11 @@ -#! /usr/bin/env bash +#!/usr/bin/env bash # You can execute this file to update wallabag # eg: `sh update.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 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/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/update.sh') diff --git a/scripts/update.sh b/scripts/update.sh index 6fff8a72..f43c4f24 100644 --- a/scripts/update.sh +++ b/scripts/update.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" ENV=$1 -- cgit v1.2.3