From 32a0cc4262b74f634fc1c8f931cfe54d04ec98d0 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Fri, 20 Dec 2019 14:32:33 +0100 Subject: [PATCH] Rename vars in getDistroVersion --- install-php-extensions | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install-php-extensions b/install-php-extensions index 6edbdb9..6cc77ba 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -40,14 +40,14 @@ getDistroVersion () { if test -z "$getDistroVersion_distro"; then return fi - getDistroVersion_versionID='' + getDistroVersion_version='' if test -r /etc/os-release; then - getDistroVersion_versionID="$(cat /etc/os-release | grep -E ^VERSION_ID= | cut -d = -f 2 | cut -d '"' -f 2 | cut -d . -f 1,2)" + getDistroVersion_version="$(cat /etc/os-release | grep -E ^VERSION_ID= | cut -d = -f 2 | cut -d '"' -f 2 | cut -d . -f 1,2)" fi - if test -z "$getDistroVersion_distro"; then + if test -z "$getDistroVersion_version"; then return fi - printf '%s@%s' "$getDistroVersion_distro" "$getDistroVersion_versionID" + printf '%s@%s' "$getDistroVersion_distro" "$getDistroVersion_version" } # Get the PHP Major-Minor version as an integer value, in format MMmm (example: 506 for PHP 5.6.15)