This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new 919e1d8 Fix sed command on MacOS (#12549)
919e1d8 is described below
commit 919e1d8bd187cf4f8626b99358275857094a93ab
Author: Tomek Urbaszek <[email protected]>
AuthorDate: Sun Nov 22 16:51:26 2020 +0100
Fix sed command on MacOS (#12549)
---
scripts/ci/pre_commit/pre_commit_sync_version.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/ci/pre_commit/pre_commit_sync_version.sh
b/scripts/ci/pre_commit/pre_commit_sync_version.sh
index 4e51c43..4c38d9f 100755
--- a/scripts/ci/pre_commit/pre_commit_sync_version.sh
+++ b/scripts/ci/pre_commit/pre_commit_sync_version.sh
@@ -25,4 +25,5 @@ set -x
AIRFLOW_VERSION_STRING=$(grep "version ="
"${AIRFLOW_SOURCES}/airflow/version.py")
readonly AIRFLOW_VERSION_STRING
-sed "s/version =.*$/${AIRFLOW_VERSION_STRING}/" -i
"${AIRFLOW_SOURCES}/setup.py"
+sed -i".out" -e "s/version =.*$/${AIRFLOW_VERSION_STRING}/"
"${AIRFLOW_SOURCES}/setup.py"
+rm setup.py.out