https://gamblisfx.com/bash-programming-if-else-fi/
Bash Programming - if Else fi