Refactor check in debian bootstrap
This commit is contained in:
parent
47006e90ea
commit
1b382ea0f2
|
@ -146,20 +146,19 @@ mod_filter_show () {
|
||||||
map_fs_modules () {
|
map_fs_modules () {
|
||||||
local filterfn="$1" percatfns="$2" permodfns="$3"
|
local filterfn="$1" percatfns="$2" permodfns="$3"
|
||||||
for x in $mod_dir/*; do
|
for x in $mod_dir/*; do
|
||||||
if test -d $x; then
|
test -d $x || continue
|
||||||
category=${x##*/} category_path=$x
|
category=${x##*/} category_path=$x
|
||||||
for f in $percatfns; do $f; done
|
for f in $percatfns; do $f; done
|
||||||
for y in $x/*; do
|
for y in $x/*; do
|
||||||
module_name=${y##*/} module_path=$y
|
module_name=${y##*/} module_path=$y
|
||||||
module=$category/$module_name
|
module=$category/$module_name
|
||||||
if $filterfn $category/$module; then
|
if $filterfn $category/$module; then
|
||||||
[ -f ${y}/module ] && . ${y}/module
|
[ -f ${y}/module ] && . ${y}/module
|
||||||
for f in $permodfns; do $f; done
|
for f in $permodfns; do $f; done
|
||||||
fi
|
fi
|
||||||
unset module_name module_path module
|
unset module_name module_path module
|
||||||
done
|
done
|
||||||
unset category category_path
|
unset category category_path
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue