Detecting Your Bash Environment: Linux, macOS, WSL, or Git Bash?
When writing cross-platform shell scripts, one of the first headaches you’ll run into is:
“Where am I running this code?”
* Is it a native Linux box?
* A macOS machine with Apple’s