This is because `sh` doesn't support else-if syntax, so it's a nested if statement in the else clause