| ▲ | fzeindl 7 hours ago | |||||||
My header on top of every script | ||||||||
| ▲ | a-french-anon 2 hours ago | parent | next [-] | |||||||
I'd suggest `pwd -P` to resolve symlinks too. (if you use DIR to call/source neighbouring scripts). | ||||||||
| ▲ | TacticalCoder 3 hours ago | parent | prev [-] | |||||||
Wait... Most of my shell scripts have zero unused variables: I prefer to comment them if I may need them later on. Why do you disable SC2034? I don't think not having unused variables prevent me from doing things in my scripts!? I understand if it's a preference but SC2034 is basically one of my biggest timesavers: in my case unused variables are typically a bug. Except, maybe, ANSI coloring variables at the top of the script. | ||||||||
| ||||||||