You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/03/04 02:29:48 UTC
[GitHub] [airflow] mik-laj commented on a change in pull request #7618:
[AIRFLOW-5828] Move build logic out from hooks/build
mik-laj commented on a change in pull request #7618: [AIRFLOW-5828] Move build logic out from hooks/build
URL: https://github.com/apache/airflow/pull/7618#discussion_r387416046
##########
File path: breeze
##########
@@ -128,15 +125,9 @@ function setup_default_breeze_variables() {
export INSTALL_AIRFLOW_VERSION=${INSTALL_AIRFLOW_VERSION:="current"}
# Determine version of the Airflow from version.py
- AIRFLOW_VERSION=$(cat airflow/version.py - << EOF | python
-print(version.replace("+",""))
-EOF
- )
+ AIRFLOW_VERSION=$(grep version <"airflow/version.py" | awk '{print $3}' | sed "s/['+]//g")
Review comment:
```suggestion
AIRFLOW_VERSION=$(grep version "airflow/version.py" | awk '{print $3}' | sed "s/['+]//g")
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services