Merge "Use bash-style test for Fedora version"

This commit is contained in:
Zuul
2018-10-08 05:28:29 +00:00
committed by Gerrit Code Review

View File

@@ -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"