From: Michael Prokop Date: Thu, 16 Aug 2012 08:22:11 +0000 (+0200) Subject: Remove only empty *.error files to see which commands have been executed X-Git-Tag: v0.7.0~3 X-Git-Url: http://git.grml.org/?p=grml-hwinfo.git;a=commitdiff_plain;h=772dcc6b13691e3ae1dc5923f6dcdcebe1da3edf Remove only empty *.error files to see which commands have been executed --- diff --git a/grml-hwinfo b/grml-hwinfo index c0c654c..c5bbd8d 100755 --- a/grml-hwinfo +++ b/grml-hwinfo @@ -325,7 +325,7 @@ cd "${OUTDIR}" || exit 1 ) # get rid of empty files -for file in *; do +for file in *.error ; do test -s $file || rm $file done