Ever wondered how to do a if/else under bash?Here's how:
if [ "$VAR" = "string" ]; then commands commandselse commands commandsfi
This will check if the variable $VAR is equal to the string "string".Experiment :)