From 0e3e603429ab598fea552e935ab947b3dd349aeb Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Wed, 8 Jan 2014 10:56:43 +0900 Subject: [PATCH] Don't check `$(uname -s)` twice --- plugins/python-build/bin/python-build | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index bc438d64..ee773b06 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -938,11 +938,9 @@ has_broken_mac_readline() { # https://github.com/yyuu/pyenv/issues/23 local retval=1 local conftest="$BUILD_PATH/has_broken_mac_readline.h" - if [ "$(uname -s)" = "Darwin" ]; then - echo "#include " > "$conftest" - "${CPP:-cpp}" $CPPFLAGS "$conftest" 1>/dev/null 2>&1 || retval=0 - rm -f "$conftest" - fi + echo "#include " > "$conftest" + "${CPP:-cpp}" $CPPFLAGS "$conftest" 1>/dev/null 2>&1 || retval=0 + rm -f "$conftest" return "$retval" else return 1