Skip to content

Commit

Permalink
update lib
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbtek committed Jan 2, 2020
1 parent 5fe08b9 commit 0a564f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libraries/util.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0a564f3

Please sign in to comment.