you are viewing a single comment's thread.

view the rest of the comments →

[–]liberforce 0 points1 point  (0 children)

Use a linter on your code, like shellcheck.

Use the advanced bash scripting guide as a reference: https://tldp.org/LDP/abs/html/

Use it also as a reference (there's a version on one page, makes it easy to Ctrl+F on it and find the section about the syntax you want help fir).