WSL in Bash
The simplest way to see if the script is called from a WSL environment is like this.
if grep -q Microsoft /proc/version; then
# it's from wsl
fi
The simplest way to see if the script is called from a WSL environment is like this.
if grep -q Microsoft /proc/version; then
# it's from wsl
fi