fix typo var
This commit is contained in:
parent
bc1a7b8d42
commit
5280224a9c
@ -1,5 +1,5 @@
|
|||||||
function g_kill_all_background_jobs {
|
function g_kill_all_background_jobs {
|
||||||
local g_pids
|
local g_pids
|
||||||
readarray g_pids < <(jobs -p)
|
readarray g_pids < <(jobs -p)
|
||||||
[ -n "${g_pids[0]}" ] && kill -9 ${pids[*]} >/dev/null 2>&1
|
[ -n "${g_pids[0]}" ] && kill -9 ${g_pids[*]} >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user