Rename vars in getDistroVersion
parent
544fee9d9e
commit
32a0cc4262
|
@ -40,14 +40,14 @@ getDistroVersion () {
|
||||||
if test -z "$getDistroVersion_distro"; then
|
if test -z "$getDistroVersion_distro"; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
getDistroVersion_versionID=''
|
getDistroVersion_version=''
|
||||||
if test -r /etc/os-release; then
|
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
|
fi
|
||||||
if test -z "$getDistroVersion_distro"; then
|
if test -z "$getDistroVersion_version"; then
|
||||||
return
|
return
|
||||||
fi
|
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)
|
# Get the PHP Major-Minor version as an integer value, in format MMmm (example: 506 for PHP 5.6.15)
|
||||||
|
|
Loading…
Reference in New Issue