Exclude '.git'

This commit is contained in:
0x1eef 2024-09-24 18:26:07 -03:00
parent d5218441c8
commit 117f3c0589
3 changed files with 5 additions and 2 deletions

View file

@ -4,7 +4,7 @@ webskel is a command-line utility that provides skeletons (or "templates")
to help you quickly start your next web application or service. The concept
is inspired by skeleton directories from the UNIX world - where they can serve
as the starting point for a new user's `${HOME}` directory. For the time being -
there is only skeleton to choose from:
there is only one skeleton to choose from:
[@webskel/dolphins7.skeleton](https://github.com/webskel/dolphins7.skeleton#readme).
## Examples

View file

@ -11,6 +11,8 @@ destdir="${2}"
cd "${target}"
find . \
-type f \
-exec install -m u=rwx,g=rx,o= {} "${destdir}"/"{}" \; \
! -name ".git" \
! -path "../.git/*" \
-exec install -m u=rwx,g=rx,o= "{}" "${destdir}"/"{}" \; \
-exec echo -n . \;
echo

View file

@ -10,6 +10,7 @@ destdir="${2}"
# main
cd "${target}"
find . \
! -name .git \
-type d \
-exec install -d -m u=rwx,g=rx,o= "${destdir}"/"{}" \; \
-exec echo -n . \;