diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-27 10:09:43 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-27 10:09:43 +0200 |
commit | c4d9a8d6d0db2be5c502e257bbeb963e3870d521 (patch) | |
tree | 3707e21a1f0a4074bd9353efee7798582eeac18e /scripts/update.sh | |
parent | 9998c725330b4a99d6d12df60ac8234052e80b6a (diff) | |
download | wallabag-c4d9a8d6d0db2be5c502e257bbeb963e3870d521.tar.gz wallabag-c4d9a8d6d0db2be5c502e257bbeb963e3870d521.tar.zst wallabag-c4d9a8d6d0db2be5c502e257bbeb963e3870d521.zip |
Usage of composer.phar if it's found
Diffstat (limited to 'scripts/update.sh')
-rw-r--r-- | scripts/update.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/update.sh b/scripts/update.sh index 96a48217..45e93f36 100644 --- a/scripts/update.sh +++ b/scripts/update.sh | |||
@@ -2,6 +2,8 @@ | |||
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 | COMPOSER_COMMAND='composer' | ||
6 | |||
5 | DIR="${BASH_SOURCE%/*}" | 7 | DIR="${BASH_SOURCE%/*}" |
6 | if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi | 8 | if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi |
7 | . "$DIR/require.sh" | 9 | . "$DIR/require.sh" |
@@ -13,5 +15,5 @@ rm -rf var/cache/* | |||
13 | git fetch origin | 15 | git fetch origin |
14 | git fetch --tags | 16 | git fetch --tags |
15 | git checkout $TAG --force | 17 | git checkout $TAG --force |
16 | SYMFONY_ENV=$ENV composer install --no-dev -o --prefer-dist | 18 | SYMFONY_ENV=$ENV $COMPOSER_COMMAND install --no-dev -o --prefer-dist |
17 | php bin/console cache:clear --env=$ENV | 19 | php bin/console cache:clear --env=$ENV |