opt: use spawn_shell to run exec config
This commit is contained in:
@@ -837,7 +837,7 @@ void run_exec() {
|
|||||||
|
|
||||||
for (int i = 0; i < config.exec_count; i++) {
|
for (int i = 0; i < config.exec_count; i++) {
|
||||||
arg.v = config.exec[i];
|
arg.v = config.exec[i];
|
||||||
spawn(&arg);
|
spawn_shell(&arg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -846,7 +846,7 @@ void run_exec_once() {
|
|||||||
|
|
||||||
for (int i = 0; i < config.exec_once_count; i++) {
|
for (int i = 0; i < config.exec_once_count; i++) {
|
||||||
arg.v = config.exec_once[i];
|
arg.v = config.exec_once[i];
|
||||||
spawn(&arg);
|
spawn_shell(&arg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user