mini: converted an if-then-else-fi to case/esac - safes ~20 bytes