diff options
Diffstat (limited to 'scripts/update.sh')
-rw-r--r-- | scripts/update.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ | |||
2 | # You can execute this file to update wallabag | 2 | # You can execute this file to update wallabag |
3 | # eg: `sh update.sh prod` | 3 | # eg: `sh update.sh prod` |
4 | 4 | ||
5 | DIR="${BASH_SOURCE%/*}" | ||
6 | if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi | ||
7 | . "$DIR/require.sh" | ||
8 | |||
5 | ENV=$1 | 9 | ENV=$1 |
6 | TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | 10 | TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) |
7 | 11 | ||