mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
Don't check $(uname -s)
twice
This commit is contained in:
parent
71a916faf2
commit
0e3e603429
1 changed files with 3 additions and 5 deletions
|
@ -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 <readline/rlconf.h>" > "$conftest"
|
||||
"${CPP:-cpp}" $CPPFLAGS "$conftest" 1>/dev/null 2>&1 || retval=0
|
||||
rm -f "$conftest"
|
||||
fi
|
||||
return "$retval"
|
||||
else
|
||||
return 1
|
||||
|
|
Loading…
Reference in a new issue