From 0864113e50056c25c0f0162ac2704f18c4f6048d Mon Sep 17 00:00:00 2001 From: MoeBrowne Date: Fri, 11 May 2018 20:51:38 +0100 Subject: [PATCH] Replaces the full clone and checkout with a shallow single branch clone --- install_php.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install_php.sh b/install_php.sh index 14709c4..fd72c3d 100755 --- a/install_php.sh +++ b/install_php.sh @@ -37,10 +37,9 @@ apt-get install -y \ # Create directory to be used as an installation target mkdir /usr/local/php-$version -git clone https://github.com/php/php-src.git +git clone --single-branch --branch "PHP-$version" --depth 1 https://github.com/php/php-src.git cd php-src -# Exit if non-existing PHP version is supplied -git checkout PHP-$version || { echo "PHP version $version not found!" ; exit 1; } + ./buildconf --force CONFIGURE_STRINGS="--enable-bcmath \