+ CYGWIN*) OS="cygwin" ;;
+ MINGW32*) OS="windows" ;;
+ *) echo "OS not detected successfully" ;;
+# check for WSL (bash-on-ubuntu-on-windows)
+# Note this doesn't differentiate distros
+if [[ $OS = "linux" ]]; then
+ if $(grep --silent 'Microsoft' /proc/sys/kernel/osrelease); then
+# ...but this does differentiate WSL distros
+if [[ $OS = "wsl" ]]; then
+ DISTRONAME=$(cat /etc/*-release | grep ^NAME)
+ if [[ $DISTRONAME == *"Ubuntu"* ]]; then
+ if [[ $DISTRONAME == *"openSUSE"* ]]; then
+echo -e "WSLDISTRO: $WSLDISTRO"
+# if [[ $OS == 'osx' ]];then