fix(kill): possible null exception (#2576)

This commit is contained in:
Daniel Imms
2025-03-07 15:48:33 -08:00
committed by GitHub
parent c7f00080a2
commit 0d04099790

View File

@@ -40,7 +40,7 @@ const completionSpec: Fig.Spec = {
// Bash's `kill` builtin has different output to /bin/kill
script: ["env", "kill", "-l"],
postProcess: (out) =>
out.match(/\w+/g).map((name) => ({
out.match(/\w+/g)?.map((name) => ({
name,
description: `Send ${name} instead of TERM`,
icon: "fig://icon?type=string",