X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=inline;f=scripts%2Fupdate.sh;h=f43c4f24c999ca0c6a72ca430a62ed66c2194466;hb=24692715de6be93d3d01606624003cef4d170133;hp=45e93f3634eb09609852e5fd205a036ad4359ba2;hpb=069d39dfaffdc99db44d578250cd366b1af69fd6;p=github%2Fwallabag%2Fwallabag.git diff --git a/scripts/update.sh b/scripts/update.sh index 45e93f36..f43c4f24 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