File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
function install_extensions {
10
10
local PHP=$1
11
- local -a EXTENSIONS=(" ${@: 2} " )
11
+ local -a EXTENSIONS=()
12
+ for EXTENSION in " ${@: 2} " ; do
13
+ EXTENSIONS+=(" $EXTENSION " )
14
+ done
12
15
13
16
case " $PHP " in
14
17
8.1)
@@ -25,7 +28,11 @@ function install_extensions {
25
28
26
29
function install_packaged_extensions {
27
30
local PHP=$1
28
- local -a EXTENSIONS=(" ${@: 2} " )
31
+ # shellcheck disable=SC2206
32
+ local -a EXTENSIONS=()
33
+ for EXTENSION in " ${@: 2} " ; do
34
+ EXTENSIONS+=(" $EXTENSION " )
35
+ done
29
36
local TO_INSTALL=" "
30
37
31
38
for EXTENSION in " ${EXTENSIONS[@]} " ; do
@@ -52,7 +59,8 @@ function enable_static_extension {
52
59
}
53
60
54
61
PHP=$1
55
- declare -a EXTENSIONS=(" ${@: 2} " )
62
+ # shellcheck disable=SC2206
63
+ declare -a EXTENSIONS=(${@: 2} )
56
64
# shellcheck disable=SC2196
57
65
ENABLED_EXTENSIONS=$( php -m | tr ' [:upper:]' ' [:lower:]' | egrep -v ' ^[\[]' | grep -v ' zend opcache' )
58
66
EXTENSIONS_TO_INSTALL=()
You can’t perform that action at this time.
0 commit comments