mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
fix distro version check
This commit is contained in:
parent
f0eeac63a3
commit
1d7ce651b0
1 changed files with 2 additions and 2 deletions
|
@ -1140,13 +1140,13 @@ require_java() {
|
|||
|
||||
require_distro() {
|
||||
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
|
||||
fi
|
||||
done
|
||||
{ echo
|
||||
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
|
||||
} >&2
|
||||
|
|
Loading…
Reference in a new issue