Skip to content

Commit

Permalink
Correct formatting of shell if statement
Browse files Browse the repository at this point in the history
Suggested-by: bashate
./tests/check_return_code.sh:15:1: E011 Then keyword is not on same line as if or elif keyword
  • Loading branch information
pabs3 committed May 25, 2020
1 parent fd6eb25 commit 69896a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/check_return_code.sh
Expand Up @@ -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
Expand Down

0 comments on commit 69896a9

Please sign in to comment.