Exclude '.git'
This commit is contained in:
parent
d5218441c8
commit
117f3c0589
3 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 . \;
|
||||
|
|
Loading…
Reference in a new issue