diff options
author | Michael Prokop <mika@debian.org> | 2010-06-17 15:00:50 +0200 |
---|---|---|
committer | Michael Prokop <mika@debian.org> | 2010-06-17 15:00:50 +0200 |
commit | 2ff4ba20c4629961373e78eb8d07f1221236802b (patch) | |
tree | 217cbb3bd7402412d1925d6bc2c049265edc5413 /scripts | |
parent | ae02e4b51c1b138994d0c6f199862f0cb82d78f8 (diff) | |
download | initramfs-tools-2ff4ba20c4629961373e78eb8d07f1221236802b.tar.gz initramfs-tools-2ff4ba20c4629961373e78eb8d07f1221236802b.zip |
scripts/functions: fix usage of test for script execution
Signed-off-by: Michael Prokop <mika@debian.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions index 883df0d..42fafa8 100644 --- a/scripts/functions +++ b/scripts/functions @@ -94,14 +94,14 @@ set_initlist() fi # skip directories - if [ -d ${si_x} ]; then + if [ -d ${si_x} ; then [ "${verbose}" = "y" ] \ && echo "$si_x ignored: a directory" continue fi # skip bad syntax - if [ ! sh -n ${si_x} ]; then + if ! sh -n ${si_x} ; then [ "${verbose}" = "y" ] \ && echo "$si_x ignored: bad syntax" continue |