major config re-think and re-write

This commit is contained in:
bol-van committed 2024-10-28 09:32:35 +03:00
1 parent d86aa42f48
commit 906e67af55
39 files changed
+963 -1340

No files matched your search

+1 -7
View File
@@ -7,14 +7,8 @@ custom_runner()
shift
[ -f "$CUSTOM_DIR/custom" ] && {
unset -f $FUNC
. "$CUSTOM_DIR/custom"
existf $FUNC && $FUNC "$@"
}
[ -d "$CUSTOM_DIR/custom.d" ] && {
n=$(ls "$CUSTOM_DIR/custom.d" | wc -c | xargs)
[ "$n" = 0 ] || {
dir_is_not_empty "$CUSTOM_DIR/custom.d" && {
for script in "$CUSTOM_DIR/custom.d/"*; do
[ -f "$script" ] || continue
unset -f $FUNC