From d87c64342841104f8ba331e75b4830bc6bcc25b3 Mon Sep 17 00:00:00 2001 From: Nam Nguyen Date: Thu, 2 Jan 2020 02:15:19 -0800 Subject: [PATCH] update lib --- libraries/util.bash | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libraries/util.bash b/libraries/util.bash index c672fac7..123c6421 100755 --- a/libraries/util.bash +++ b/libraries/util.bash @@ -495,11 +495,19 @@ function resetFolderPermission() find "${folderPath}" \ -type d \ + \( \ + -not -path "*/.git" -a \ + -not -path "*/.git/*" \ + \) \ -exec chmod 700 '{}' \; \ -print find "${folderPath}" \ -type f \ + \( \ + -not -path "*/.git" -a \ + -not -path "*/.git/*" \ + \) \ -exec chmod 600 '{}' \; \ -print }