Skip to content

Commit df6d3d6

Browse files
Denton-Lgitster
authored andcommitted
lib-bash.sh: move then onto its own line
The code style for tests is to have statements on their own line if possible. Move the `then` onto its own line so that it conforms with the test style. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent d9f6f3b commit df6d3d6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/lib-bash.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
# to run under Bash; primarily intended for tests of the completion
33
# script.
44

5-
if test -n "$BASH" && test -z "$POSIXLY_CORRECT"; then
5+
if test -n "$BASH" && test -z "$POSIXLY_CORRECT"
6+
then
67
# we are in full-on bash mode
78
true
8-
elif type bash >/dev/null 2>&1; then
9+
elif type bash >/dev/null 2>&1
10+
then
911
# execute in full-on bash mode
1012
unset POSIXLY_CORRECT
1113
exec bash "$0" "$@"

0 commit comments

Comments
 (0)