summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions
index ac77972..8177216 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -100,6 +100,13 @@ set_initlist()
continue
fi
+ # skip bad syntax
+ if [ ! sh -n ${si_x} ]; then
+ [ "${verbose}" = "y" ] \
+ && echo "$si_x ignored: bad syntax"
+ continue
+ fi
+
initlist="${initlist} ${si_x#${initdir}/}"
done
}
@@ -123,6 +130,10 @@ reduce_satisfied()
if [ -d ${initdir}/${rs_y} ]; then
continue
fi
+ # skip bad syntax
+ if [ ! sh -n ${initdir}/${rs_y} ]; then
+ continue
+ fi
tmpdeplist="${tmpdeplist} ${rs_y}"
done
deplist=${tmpdeplist}