Detect user’s OS using bash

Here is an approach to detect the user's operating system using a bash script. This might be useful during installation routines of your software.