init.d: ignore dirs in custom.d

This commit is contained in:
bol-van committed 2024-10-28 09:32:33 +03:00
1 parent 5a5d9f7f31
commit 20e6ba721a
1 file changed
+1
+1
View File
@@ -16,6 +16,7 @@ custom_runner()
n=$(ls "$CUSTOM_DIR/custom.d" | wc -c | xargs)
[ "$n" = 0 ] || {
for script in "$CUSTOM_DIR/custom.d/"*; do
[ -f "$script" ] || continue
unset -f $FUNC
. "$script"
existf $FUNC && $FUNC "$@"