summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2010-06-17 14:34:23 +0200
committermaximilian attems <maks@debian.org>2010-06-17 14:34:23 +0200
commitae02e4b51c1b138994d0c6f199862f0cb82d78f8 (patch)
treedc727414de46a0f379f556684bc63dd1a5979c37
parent68c87cd042ce2819625b2f067cf67e690d8b2ce8 (diff)
downloadinitramfs-tools-ae02e4b51c1b138994d0c6f199862f0cb82d78f8.tar.gz
initramfs-tools-ae02e4b51c1b138994d0c6f199862f0cb82d78f8.zip
scripts/functions: beautify a bit reduce_satisfied()
shorten code, no code change. function easier to read. Signed-off-by: maximilian attems <maks@debian.org>
-rw-r--r--scripts/functions13
1 files changed, 4 insertions, 9 deletions
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}