Update install-php-extensions
parent
821cc51fc2
commit
b97c7db893
|
@ -41,22 +41,6 @@ getDistro () {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get the distribution name with version
|
|
||||||
#
|
|
||||||
# Output:
|
|
||||||
# alpine<verion_id>|debian<verion_id>
|
|
||||||
getDistroVersion () {
|
|
||||||
getDistro_version_id=''
|
|
||||||
if test -r /etc/os-release; then
|
|
||||||
getDistro_version_id="$(cat /etc/os-release | grep -E ^VERSION_ID= | cut -d = -f 2)"
|
|
||||||
fi
|
|
||||||
if test -n "$getDistro_version_id"; then
|
|
||||||
printf '%s' "$(getDistro)$getDistro_version_id"
|
|
||||||
else
|
|
||||||
printf '%s' ''
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Get the PHP Major-Minor version as an integer value, in format MMmm (example: 506 for PHP 5.6.15)
|
# Get the PHP Major-Minor version as an integer value, in format MMmm (example: 506 for PHP 5.6.15)
|
||||||
#
|
#
|
||||||
# Output:
|
# Output:
|
||||||
|
|
Loading…
Reference in New Issue