From ae02e4b51c1b138994d0c6f199862f0cb82d78f8 Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Thu, 17 Jun 2010 14:34:23 +0200 Subject: scripts/functions: beautify a bit reduce_satisfied() shorten code, no code change. function easier to read. Signed-off-by: maximilian attems --- scripts/functions | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'scripts') diff --git a/scripts/functions b/scripts/functions index 8177216..883df0d 100644 --- a/scripts/functions +++ b/scripts/functions @@ -123,17 +123,12 @@ reduce_satisfied() ;; esac # skip non executable scripts - if [ ! -x ${initdir}/${rs_y} ]; then - continue - fi + [ ! -x ${initdir}/${rs_y} ] && continue # skip directories - if [ -d ${initdir}/${rs_y} ]; then - continue - fi + [ -d ${initdir}/${rs_y} ] && continue # skip bad syntax - if [ ! sh -n ${initdir}/${rs_y} ]; then - continue - fi + [ ! sh -n ${initdir}/${rs_y} ] && continue + tmpdeplist="${tmpdeplist} ${rs_y}" done deplist=${tmpdeplist} -- cgit v1.2.3