Leave log directory, just remove files inside
authorChristoph Dwertmann <christoph.dwertmann@nicta.com.au>
Fri, 17 May 2013 16:40:30 +0000 (12:40 -0400)
committerChristoph Dwertmann <christoph.dwertmann@nicta.com.au>
Fri, 17 May 2013 16:40:30 +0000 (12:40 -0400)
rpm/rvm-ruby.spec

index ec5c5e8..d4417f2 100644 (file)
@@ -130,8 +130,8 @@ export br=%{buildroot}
 
 # Remove sources
 rm -rf $br/usr/lib/rvm/src/*
-# Remove logs
-rm -rf $br/usr/lib/rvm/log/*
+# Remove logfiles
+find $br/usr/lib/rvm/log -type f -exec rm {} \;
 
 # Strip binaries
 #find $br -type f -print0 |xargs -0 file --no-dereference --no-pad |grep 'not stripped' |cut -f1 -d: |xargs -r strip