potiuk commented on a change in pull request #21346:
URL: https://github.com/apache/airflow/pull/21346#discussion_r801556998
##########
File path: docs/start_doc_server.sh
##########
@@ -20,5 +20,11 @@ DOCS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
readonly DOCS_DIR
(cd "${DOCS_DIR}"/_build || exit;
- python -m http.server 8000
+ version=$(python -V 2>&1 | grep -Po '(?<=Python )(.+)')
+ if [[ -z "$version" ]]
+ then
+ python3 -m http.server 8000
Review comment:
I think we do not need to check the version at all. Simply using python3
wil be enough, without the need of checking the version.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]