X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fupdate.sh;h=96a48217f492caea1835323c116162e3bce9fd45;hb=9998c725330b4a99d6d12df60ac8234052e80b6a;hp=b920a829b0ae06558f22d6865a7b226390fcab14;hpb=99731f0bb1f6fd2815eeb9af504ce86df927657b;p=github%2Fwallabag%2Fwallabag.git diff --git a/scripts/update.sh b/scripts/update.sh index b920a829..96a48217 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -2,6 +2,10 @@ # You can execute this file to update wallabag # eg: `sh update.sh prod` +DIR="${BASH_SOURCE%/*}" +if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi +. "$DIR/require.sh" + ENV=$1 TAG=$(git describe --tags $(git rev-list --tags --max-count=1))