mirror of
https://github.com/bol-van/zapret.git
synced 2026-10-25 04:16:50 +09:00
major config re-think and re-write
This commit is contained in:
1 parent
d86aa42f48
commit
906e67af55
39 files changed
+963
-1340
No files matched your search
+1
-7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user