From 6c8e67faabd68cc2f863af1495a1179b9324f5b1 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 13 Oct 2024 13:25:19 +0300 Subject: [PATCH] init.d: ignore dirs in custom.d --- common/custom.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/common/custom.sh b/common/custom.sh index db98837..752f7f0 100644 --- a/common/custom.sh +++ b/common/custom.sh @@ -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 "$@"