mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-11 04:53:47 -05:00
fix distro version check
This commit is contained in:
@@ -1140,13 +1140,13 @@ require_java() {
|
|||||||
|
|
||||||
require_distro() {
|
require_distro() {
|
||||||
for arg; do
|
for arg; do
|
||||||
if [[ "$(cat /etc/issue 2>/dev/null || true)" == "$1"* ]]; then
|
if [[ "$(cat /etc/issue 2>/dev/null || true)" == "$arg"* ]]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
{ echo
|
{ echo
|
||||||
colorize 1 "WARNING"
|
colorize 1 "WARNING"
|
||||||
echo ": This binary distribution is built for $1."
|
echo ": This binary distribution is built for the following distro(s): $@."
|
||||||
echo "installed binary may not run expectedly on other platforms."
|
echo "installed binary may not run expectedly on other platforms."
|
||||||
echo
|
echo
|
||||||
} >&2
|
} >&2
|
||||||
|
|||||||
Reference in New Issue
Block a user