Skip to content
This repository was archived by the owner on Dec 23, 2018. It is now read-only.

Commit 2a78934

Browse files
committed
Avoid += for compatibility with older bash versions
1 parent 736eaf4 commit 2a78934

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/phpenv-install

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ case "$DEFINITION" in
2525
;;
2626
"-k" | "--keep" )
2727
[ -z "${PHPENV_BUILD_ROOT}" ] && PHPENV_BUILD_ROOT="${PHPENV_ROOT}/sources"
28-
PHP_BUILD_OPTIONS+=" -k"
28+
PHP_BUILD_OPTIONS="${PHP_BUILD_OPTIONS} -k"
2929
;;
3030
esac
3131

@@ -36,7 +36,7 @@ PREFIX="${PHPENV_ROOT}/versions/${VERSION_NAME}"
3636
# php-build
3737
if [ -n "${PHPENV_BUILD_ROOT}" ]; then
3838
export PHP_BUILD_BUILD_PATH="${PHPENV_BUILD_ROOT}/${VERSION_NAME}"
39-
PHP_BUILD_OPTIONS+=" -k"
39+
PHP_BUILD_OPTIONS="${PHP_BUILD_OPTIONS} -k"
4040
fi
4141

4242
php-build "$DEFINITION" "$PREFIX" "$PHP_BUILD_OPTIONS"

0 commit comments

Comments
 (0)