You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/08/18 16:21:23 UTC

[airflow] branch master updated: Too much was happening in this pre-commit script (#10345)

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 485ecc4  Too much was happening in this pre-commit script (#10345)
485ecc4 is described below

commit 485ecc45fd4020cd85f7425f1cb0654137b511bf
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Tue Aug 18 18:20:45 2020 +0200

    Too much was happening in this pre-commit script (#10345)
---
 scripts/ci/pre_commit/pre_commit_check_integrations.sh | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/scripts/ci/pre_commit/pre_commit_check_integrations.sh b/scripts/ci/pre_commit/pre_commit_check_integrations.sh
index a0b33c8..ce8d700 100755
--- a/scripts/ci/pre_commit/pre_commit_check_integrations.sh
+++ b/scripts/ci/pre_commit/pre_commit_check_integrations.sh
@@ -16,14 +16,11 @@
 # specific language governing permissions and limitations
 # under the License.
 set -euo pipefail
-
-PRE_COMMIT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-AIRFLOW_SOURCES=$(cd "${PRE_COMMIT_DIR}/../../../" && pwd);
-cd "${AIRFLOW_SOURCES}" || exit 1
-
 # shellcheck source=scripts/ci/libraries/_script_init.sh
 . "$( dirname "${BASH_SOURCE[0]}" )/../libraries/_script_init.sh"
 
+cd "${AIRFLOW_SOURCES}" || exit 1
+
 . breeze-complete
 
 if [[ "${AVAILABLE_INTEGRATIONS} all" != "${_BREEZE_ALLOWED_INTEGRATIONS}" ]]; then