From a6694071d52571e16cd06efe00cc1510d9d4ad59 Mon Sep 17 00:00:00 2001 From: Don Richards <2738244+DonRichards@users.noreply.github.com> Date: Thu, 23 Feb 2023 17:05:59 -0500 Subject: [PATCH] removed the * for files --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c0d773973..3f4fb97fa 100644 --- a/Makefile +++ b/Makefile @@ -221,12 +221,12 @@ set-codebase-owner: @echo "Setting codebase/ folder owner back to $(shell id -u):101" if [ -n "$$(docker ps -q -f name=drupal)" ]; then \ echo " └─ Using docker-compose codebase/ directory"; \ - docker-compose exec -T drupal with-contenv bash -lc "find . -not -user $(shell id -u) -not -path '*/sites/default/files/*' -exec chown $(shell id -u):101 {} \;" ; \ - docker-compose exec -T drupal with-contenv bash -lc "find . -not -group 101 -not -path '*/sites/default/files/*' -exec chown $(shell id -u):101 {} \;" ; \ + docker-compose exec -T drupal with-contenv bash -lc "find . -not -user $(shell id -u) -not -path '*/sites/default/files' -exec chown $(shell id -u):101 {} \;" ; \ + docker-compose exec -T drupal with-contenv bash -lc "find . -not -group 101 -not -path '*/sites/default/files' -exec chown $(shell id -u):101 {} \;" ; \ elif [ -d "codebase" ]; then \ echo " └─ Using local codebase/ directory"; \ - sudo find ./codebase -not -user $(shell id -u) -not -path '*/sites/default/files/*' -exec chown $(shell id -u):101 {} \; ; \ - sudo find ./codebase -not -group 101 -not -path '*/sites/default/files/*' -exec chown $(shell id -u):101 {} \; ; \ + sudo find ./codebase -not -user $(shell id -u) -not -path '*/sites/default/files' -exec chown $(shell id -u):101 {} \; ; \ + sudo find ./codebase -not -group 101 -not -path '*/sites/default/files' -exec chown $(shell id -u):101 {} \; ; \ else \ echo " └─ No codebase/ directory found, skipping"; \ fi