sh: Fix sonar warnings.

* Combine if statements.
* Use {} around blocks.

Change-Id: I45a18f0451f8f5e91e2a9644e1dc1eb366dcb1d6
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
3 files changed