cleaner init/clean
This commit is contained in:
parent
db338f601b
commit
d817cc3675
5 changed files with 7 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
||||||
_*
|
_cache/
|
||||||
src/archive.org
|
src/archive.org
|
||||||
.direnv/
|
.direnv/
|
||||||
|
|
1
_full/.gitignore
vendored
Normal file
1
_full/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
!.gitignore
|
1
_optim/.gitignore
vendored
Normal file
1
_optim/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
!.gitignore
|
1
_site/.gitignore
vendored
Normal file
1
_site/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
!.gitignore
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
echo -n "* Clean site cache"
|
echo -n "* Clean site cache"
|
||||||
find _site -mindepth 1 -delete
|
find _site -not -path "_site/.gitignore" -mindepth 1 -delete
|
||||||
find _full -mindepth 1 -delete
|
find _full -not -path "_full/.gitignore" -mindepth 1 -delete
|
||||||
find _optim -mindepth 1 -delete
|
find _optim -not -path "_optim/.gitignore" -mindepth 1 -delete
|
||||||
rm -rf _cache
|
rm -rf _cache
|
||||||
echo " [done]"
|
echo " [done]"
|
||||||
|
|
Loading…
Reference in a new issue