bashsupport-pro
bashsupport-pro copied to clipboard
Exported variable "could be local"
#!/bin/bash
main() {
ROOT="$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")")/.."
export ROOT
}
while you can technically do that, I don't think it's useful to declare exported variables as local