SC2034

The ShellCheck warning for a variable that is assigned but never read in the file.

In more detail

Often it is a typo or dead code. A variable written through a nameref or read by another script triggers it too, and then a disable directive with a reason is appropriate.

Related terms

Taught in

References