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/05/30 19:02:57 UTC

[airflow] branch master updated: Prevents failure on fixing permissions for files with space in it (#9076)

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 88c8edb  Prevents failure on fixing permissions for files with space in it (#9076)
88c8edb is described below

commit 88c8edb898969c2bb6b9cbc04f504691c67c91ff
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Sat May 30 21:02:31 2020 +0200

    Prevents failure on fixing permissions for files with space in it (#9076)
---
 scripts/ci/in_container/_in_container_utils.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/ci/in_container/_in_container_utils.sh b/scripts/ci/in_container/_in_container_utils.sh
index 71b45b7..12bea89 100644
--- a/scripts/ci/in_container/_in_container_utils.sh
+++ b/scripts/ci/in_container/_in_container_utils.sh
@@ -93,8 +93,8 @@ function in_container_cleanup_pycache() {
 #
 function in_container_fix_ownership() {
     set +o pipefail
-    sudo find "${AIRFLOW_SOURCES}" -user root \
-    | sudo xargs chown -v "${HOST_USER_ID}.${HOST_GROUP_ID}" --no-dereference >/dev/null 2>&1
+    sudo find "${AIRFLOW_SOURCES}" -user root -print0 \
+    | sudo xargs --null chown -v "${HOST_USER_ID}.${HOST_GROUP_ID}" --no-dereference >/dev/null 2>&1
     set -o pipefail
 }