Skip to content

Commit

Permalink
[AIRFLOW-6842] Skip fixing ownership on Mac (#7469)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1a9a9f7)
  • Loading branch information
potiuk authored and kaxil committed Mar 19, 2020
1 parent 1bc025d commit 4c5d7c2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/ci/_utils.sh
Expand Up @@ -532,9 +532,12 @@ EOF
confirm_image_rebuild
fi
if [[ ${SKIP_REBUILD} != "true" ]]; then
ROOT_FILES_COUNT=$(find "airflow" "tests" -user root | wc -l)
if [[ ${ROOT_FILES_COUNT} != "0" ]]; then
./scripts/ci/ci_fix_ownership.sh
SYSTEM=$(uname -s)
if [[ ${SYSTEM} != "Darwin" ]]; then
ROOT_FILES_COUNT=$(find "airflow" "tests" -user root | wc -l | xargs)
if [[ ${ROOT_FILES_COUNT} != "0" ]]; then
./scripts/ci/ci_fix_ownership.sh
fi
fi
print_info
print_info "Build start: ${THE_IMAGE_TYPE} image."
Expand Down

0 comments on commit 4c5d7c2

Please sign in to comment.