From ba28fcabcc69e4725783456ef09990db96e91174 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 19 Apr 2020 15:56:54 +0200 Subject: [PATCH] Update _common.sh --- scripts/_common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 4e3718f7..14ee509d 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -34,6 +34,7 @@ ynh_composer_exec () { # Manage arguments with getopts ynh_handle_getopts_args "$@" workdir="${workdir:-$final_path}" + phpversion="${phpversion:-7.0}" COMPOSER_HOME="$workdir/.composer" \ php${phpversion} "$workdir/composer.phar" $commands \ @@ -53,6 +54,7 @@ ynh_install_composer () { # Manage arguments with getopts ynh_handle_getopts_args "$@" workdir="${workdir:-$final_path}" + phpversion="${phpversion:-7.0}" curl -sS https://getcomposer.org/installer \ | COMPOSER_HOME="$workdir/.composer" \ @@ -64,7 +66,6 @@ ynh_install_composer () { || ynh_die --message="Unable to update core dependencies with Composer." } - # Install another version of php. # # usage: ynh_install_php --phpversion=phpversion [--package=packages]