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 a7c6329 commit b73330b
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 b73330b

Please sign in to comment.