magento2-installer-bash-script icon indicating copy to clipboard operation
magento2-installer-bash-script copied to clipboard

sintax errors when run the first command

Open Elema82 opened this issue 7 months ago • 1 comments

m2-installer --source=composer --version=2.4.8 --base-url=magento-248.test --install-sample-data --db-user=magento --db-pass=magento --db-name=magento248 /usr/local/bin/m2-installer: line 450: syntax error in conditional expression: unexpected token (' /usr/local/bin/m2-installer: line 450: syntax error near @(t' /usr/local/bin/m2-installer: line 450: ` if [[ "$INSTALL_SOURCE" != @(tar|composer) ]]; then'

Elema82 avatar Apr 14 '25 19:04 Elema82

Add shopt -s extglob on top of m2-installer like:

#!/bin/bash
shopt -s extglob

henkvalk avatar Jun 25 '25 10:06 henkvalk