From 69896a9c3f9f43410f44c6083973cbf5fe24cf81 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Sun, 3 Nov 2019 11:29:37 +0800 Subject: [PATCH] Correct formatting of shell if statement Suggested-by: bashate ./tests/check_return_code.sh:15:1: E011 Then keyword is not on same line as if or elif keyword --- tests/check_return_code.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/check_return_code.sh b/tests/check_return_code.sh index c1cea6d..4d5bfb3 100755 --- a/tests/check_return_code.sh +++ b/tests/check_return_code.sh @@ -12,8 +12,7 @@ check_return_code () { RESULT="${?}" - if [ "${EXPECTED}" != "${RESULT}" ] - then + if [ "${EXPECTED}" != "${RESULT}" ] ; then echo "Did not return with ${EXPECTED} (saw: ${RESULT})" RET="1" fi