Skip to content

Commit 51e4c07

Browse files
authored
Update bootstrap cmd to only install hirak/prestissimo when Composer v2 is not in use
1 parent 2057ed7 commit 51e4c07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.warden/commands/bootstrap.cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ if [[ ${CLEAN_INSTALL} ]] && [[ ! -f "${WARDEN_WEB_ROOT}/composer.json" ]]; then
172172
fi
173173

174174
:: Installing dependencies
175-
warden env exec -T php-fpm composer global require hirak/prestissimo
175+
warden env exec -T php-fpm bash \
176+
-c '[[ $(composer -V | cut -d\ -f3 | cut -d. -f1) == 2 ]] || composer global require hirak/prestissimo'
176177
warden env exec -T php-fpm composer install
177178

178179
## import database only if --skip-db-import is not specified

0 commit comments

Comments
 (0)