fix: ptr
This commit is contained in:
parent
92398a533a
commit
a6187dafc3
|
@ -341,7 +341,7 @@ int jobs_run(PIPELINE *pline) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// get args
|
// get args
|
||||||
char **args = jobs_get_args(pline->commands->args);
|
char **args = jobs_get_args(ptr->args);
|
||||||
|
|
||||||
// run command
|
// run command
|
||||||
if (execvp(args[0], args) == -1) {
|
if (execvp(args[0], args) == -1) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user