From f1024582e0247b6e65a6ec1f91b270486c032ac5 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Wed, 25 Apr 2018 16:17:34 +0100 Subject: [PATCH] Exclude node_modules from permission aliases --- shells/aliases | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shells/aliases b/shells/aliases index e8b5d754..5abdd719 100644 --- a/shells/aliases +++ b/shells/aliases @@ -1,6 +1,6 @@ # These alow me to easily set the file and folder permissions for a wordpress instilation. -alias folder-perms='find . -type d -not -path "./.git/*" -not -path "./.git" -not -perm 775 -exec chmod 775 {} \;' -alias file-perms='find . -type f -not -path "./.git/*" -not -path "./.git" -not -perm 664 -exec chmod 664 {} \;' +alias folder-perms='find . -type d -not -path "./.git/*" -not -path "./.git" -not -path "./node_modules/*" -not -path "./node_modules" -not -perm 775 -exec chmod 775 {} \;' +alias file-perms='find . -type f -not -path "./.git/*" -not -path "./.git" -not -path "./node_modules/*" -not -path "./node_modules" -not -perm 664 -exec chmod 664 {} \;' alias wp-perms='folder-perms; file-perms' alias magentoPerms='cd ${PWD%/public_html*}/public_html;sudo chown -R jonathan:http .; folder-perms; file-perms; chmod +x bin/*; cd -' alias upgr='magento setup:upgrade && magento setup:di:compile && magentoPerms'