Closed nyxnor closed 2 years ago
There is another reason for this, shellcheck understand ALL_CAPS as environmental variables, so it does not check if the variable was assigned before. Because of this, when dealing with sourced scripts, error out if variables are empty or unset with : ${var:?}
.
Example of shellcheck that should output error on both instances, but only happened on one
My doubt is / How can I:
Env var should be distinguishable according to posix and this stackoverflow answer. The .onionrc is a lib and "exports" vars to other scripts.