diff options
-rwxr-xr-x | spec-helper | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec-helper b/spec-helper index 42ad740..558c977 100755 --- a/spec-helper +++ b/spec-helper @@ -53,9 +53,9 @@ test -z "$DONT_STRIP" && echo -n "Stripping files..." && strip_files && echo "do test -z "$DONT_RELINK" && echo -n "Relativisation of symlinks..." && relative_me_babe && echo "done" test -z "$DONT_CLEAN_PERL" && echo -n "Clean perl..." && clean_perl && echo "done" test -z "$DONT_SYMLINK_LIBS" && echo -n "Building libraries symlinks..." && lib_symlinks && echo "done" -if [ -d $RPM_BUILD_ROOT/etc/rc.d/init.d ]; then +if [ -d $RPM_BUILD_ROOT/etc/rc.d/init.d -a -n "`ls $RPM_BUILD_ROOT/etc/rc.d/init.d/* 2> /dev/null`" ]; then test -z "$DONT_GPRINTIFY" && echo -n "Gprintifying init scripts..." && gprintify.py $RPM_BUILD_ROOT/etc/rc.d/init.d/* && echo "done" -elif [ -d $RPM_BUILD_ROOT/etc/init.d ]; then +elif [ -d $RPM_BUILD_ROOT/etc/init.d -a -n "`ls $RPM_BUILD_ROOT/etc/init.d/* 2> /dev/null`" ]; then test -z "$DONT_GPRINTIFY" && echo -n "Gprintifying init scripts..." && gprintify.py $RPM_BUILD_ROOT/etc/init.d/* && echo "done" fi |