Joined May 2021
·

johnkarahalis

Posted to Bash Include Guard over 1 year ago

Nice! Thanks for the tip.
I might recommend one small change. Using a semicolon makes it easier to read (in my opinion) and helps it pass ShellCheck.
[ -n "$LIB_NAME" ] && return; readonly LIB_NAME=1

Achievements
1 Karma
0 Total ProTip Views