fix typo var

This commit is contained in:
olli 2024-03-27 13:59:04 +01:00
parent bc1a7b8d42
commit 5280224a9c

View File

@ -1,5 +1,5 @@
function g_kill_all_background_jobs {
local g_pids
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
}