diff options
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 |