diff options
author | Michael Prokop <mika@debian.org> | 2010-06-17 15:05:31 +0200 |
---|---|---|
committer | Michael Prokop <mika@debian.org> | 2010-06-17 16:16:07 +0200 |
commit | 74f71c9697d7dd7b25a7014320a7366027149fee (patch) | |
tree | 83f8af61a816e5284d7d14fde88c65ed25249bb3 | |
parent | 2ff4ba20c4629961373e78eb8d07f1221236802b (diff) | |
download | initramfs-tools-74f71c9697d7dd7b25a7014320a7366027149fee.tar.gz initramfs-tools-74f71c9697d7dd7b25a7014320a7366027149fee.zip |
scripts/functions: fix another sh -n usage and fix typo
Signed-off-by: Michael Prokop <mika@debian.org>
-rw-r--r-- | scripts/functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions index 42fafa8..56ae1e1 100644 --- a/scripts/functions +++ b/scripts/functions @@ -94,7 +94,7 @@ set_initlist() fi # skip directories - if [ -d ${si_x} ; then + if [ -d ${si_x} ]; then [ "${verbose}" = "y" ] \ && echo "$si_x ignored: a directory" continue @@ -127,7 +127,7 @@ reduce_satisfied() # skip directories [ -d ${initdir}/${rs_y} ] && continue # skip bad syntax - [ ! sh -n ${initdir}/${rs_y} ] && continue + sh -n ${initdir}/${rs_y} || continue tmpdeplist="${tmpdeplist} ${rs_y}" done |