potiuk commented on a change in pull request #21346:
URL: https://github.com/apache/airflow/pull/21346#discussion_r802614941
##########
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:
Well actually just replacing `python` with `python3 in the original
command is enoug. No need to ad "version", "if" etc.
```
python -m http.server 8000 => python3 -m http.server 8000
```
--
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]