Skip to content

Files

Latest commit

 

History

History
23 lines (14 loc) · 421 Bytes

SC2285.md

File metadata and controls

23 lines (14 loc) · 421 Bytes

Pattern: Use of spaces around +=

Issue: -

Description

ShellCheck found an unquoted += after a word. To append text to a variable, remove spaces around += as in the example.

Example of incorrect code:

var += "my text"

Example of correct code:

var+="my text"

Further Reading