From 87193db30b09a877425031581a0308d5b166542f Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Sat, 23 May 2009 12:45:15 +0000 Subject: cosmetics --- gprintify | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gprintify') diff --git a/gprintify b/gprintify index 7ca3dff..dd40de9 100755 --- a/gprintify +++ b/gprintify @@ -13,8 +13,12 @@ fi scripts= for f in `ls $RPM_BUILD_ROOT/etc/rc.d/init.d/* $RPM_BUILD_ROOT/etc/init.d/* 2> /dev/null`; do - test -f $f && egrep -q '[[:space:]]*\.[[:space:]]+.*/functions' $f && scripts="$scripts $f" + test -f $f || continue + egrep -q '[[:space:]]*\.[[:space:]]+.*/functions' $f || continue + scripts="$scripts $f" done if [ -n "$scripts" ]; then - echo -n "Gprintifying init scripts..." && /usr/share/spec-helper/gprintify.py $scripts && echo "done" + echo -n "Gprintifying init scripts..." + /usr/share/spec-helper/gprintify.py $scripts + echo "done" fi -- cgit v1.2.1