Skip to content

Commit 3733cea

Browse files
authored
Merge pull request #54 from nick-zh/fix-version-overwrite
fix version overwrite
2 parents 5f7df9c + 7da7643 commit 3733cea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/compile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,12 @@ set -o xtrace
6060

6161
export PATH="$HOME/.phpenv/bin:$HOME/.php-build/bin:$PATH"
6262

63+
buildDefinition=${VERSION}
6364
if [[ $VERSION == nightly* || $VERSION == master* ]]; then
64-
VERSION=8.0snapshot
65+
buildDefinition=8.0snapshot
6566
fi
6667

67-
php-build -i development "${VERSION}" "${INSTALL_DEST}/${VERSION}"
68+
php-build -i development "${buildDefinition}" "${INSTALL_DEST}/${VERSION}"
6869

6970
pushd "${INSTALL_DEST}/${VERSION}"
7071

0 commit comments

Comments
 (0)