mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 12:10:53 +03:00
init.d: ignore dirs in custom.d
This commit is contained in:
parent
5a5d9f7f31
commit
20e6ba721a
@ -16,6 +16,7 @@ custom_runner()
|
|||||||
n=$(ls "$CUSTOM_DIR/custom.d" | wc -c | xargs)
|
n=$(ls "$CUSTOM_DIR/custom.d" | wc -c | xargs)
|
||||||
[ "$n" = 0 ] || {
|
[ "$n" = 0 ] || {
|
||||||
for script in "$CUSTOM_DIR/custom.d/"*; do
|
for script in "$CUSTOM_DIR/custom.d/"*; do
|
||||||
|
[ -f "$script" ] || continue
|
||||||
unset -f $FUNC
|
unset -f $FUNC
|
||||||
. "$script"
|
. "$script"
|
||||||
existf $FUNC && $FUNC "$@"
|
existf $FUNC && $FUNC "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user