From 1d7ce651b0c7af2decd66d941ffce7ff41f2b770 Mon Sep 17 00:00:00 2001 From: Josh Friend Date: Mon, 30 Mar 2015 13:29:09 -0400 Subject: [PATCH] fix distro version check --- plugins/python-build/bin/python-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 227e88d5..e27e8a22 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -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