move -mindepth options

This commit is contained in:
Nabeel Shahzad 2018-01-04 15:22:32 -06:00
parent 69f242811b
commit ee08398aed
2 changed files with 7 additions and 7 deletions

View File

@ -29,8 +29,8 @@ if [ "$TRAVIS" = "true" ]; then
find ./vendor -type d -name ".git" -print0 | xargs rm -rf
# clear any app specific stuff that might have been loaded in
find storage/app/public -not -name '.gitignore' -print0 | xargs -0 rm -rf
find storage/app -not -name '.gitignore' -not -name public -print0 | xargs -0 rm -rf
find storage/app/public -mindepth 1 -not -name '.gitignore' -print0 | xargs -0 rm -rf
find storage/app -mindepth 1 -not -name '.gitignore' -not -name public -print0 | xargs -0 rm -rf
# Remove any development files
rm -rf .sass-cache
@ -46,7 +46,7 @@ if [ "$TRAVIS" = "true" ]; then
echo "creating tarball"
cd /tmp
tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms
tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms
#git archive --format=tar.gz --prefix=phpvms/ --output=test.tar.gz HEAD
echo "running rsync"

View File

@ -18,11 +18,11 @@ clean:
@php artisan view:clear
@find bootstrap/cache -type f -not -name '.gitignore' -print0 | xargs -0 rm -rf
@find storage/framework/cache/ -not -name '.gitignore' -mindepth 1 -print0 | xargs -0 rm -rf
@find storage/framework/sessions/ -type f -not -name '.gitignore' -mindepth 1 -print0 | xargs -0 rm -rf
@find storage/framework/views/ -not -name '.gitignore' -mindepth 1 -print0 | xargs -0 rm -rf
@find storage/framework/cache/ -mindepth 1 -not -name '.gitignore' -print0 | xargs -0 rm -rf
@find storage/framework/sessions/ -mindepth 1 -type f -not -name '.gitignore' -print0 | xargs -0 rm -rf
@find storage/framework/views/ -mindepth 1 -not -name '.gitignore' -print0 | xargs -0 rm -rf
@find storage/logs -type f -not -name '.gitignore' -print0 | xargs -0 rm -rf
@find storage/logs -mindepth 1 -not -name '.gitignore' -print0 | xargs -0 rm -rf
.PHONY: clean-routes
clean-routes: