Two small simplifications to app handling. Specially merge _test and _setup functions into a single _init.
This commit is contained in:
parent
bb40483f80
commit
0ab4235b09
1 changed files with 3 additions and 2 deletions
|
|
@ -265,7 +265,7 @@ fn select_apps {
|
|||
found=()
|
||||
for(a in $enabled_apps) {
|
||||
. ./apps/$a/app.rc
|
||||
if($a^'_test')
|
||||
if($a^'_init')
|
||||
found=yes
|
||||
}
|
||||
|
||||
|
|
@ -273,7 +273,8 @@ fn select_apps {
|
|||
}
|
||||
|
||||
fn app_handler {
|
||||
$app_body_handler
|
||||
if(! ~ $#app_body_handler 0)
|
||||
$app_body_handler
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue