Modify the conditional sentence from `if` to `case`.

In order to support the MacOS generally,
use `case` to specify the MacOS generally by using `*`.

`case` supports the wildcard specifier, `*`.