need help with bash script
i just started learning how to make my own bash scripts. now i just need to know how to make a script that detects distribution.
i want to support:
centos 6 + 7
ubuntu any version if possible
does any of you know a place to find a good tuturial?