diff --git a/inc/python b/inc/python index 96be107dfa..d8b8169fa1 100644 --- a/inc/python +++ b/inc/python @@ -49,7 +49,7 @@ function get_python_exec_prefix { fi $xtrace - if python3_enabled && [ "$os_VENDOR" = "Fedora" -a $os_RELEASE -gt 26 ]; then + if python3_enabled && [[ "$os_VENDOR" == "Fedora" && $os_RELEASE -gt 26 ]]; then # Default Python 3 install prefix changed to /usr/local in Fedora 27: # https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe echo "/usr/local/bin"