From 2ff4ba20c4629961373e78eb8d07f1221236802b Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 17 Jun 2010 15:00:50 +0200 Subject: scripts/functions: fix usage of test for script execution Signed-off-by: Michael Prokop --- scripts/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/functions') 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 -- cgit v1.2.3