@matheusbsbs / matheus-bagliano / commits / df6d3d6802
Fork 0

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>

Denton Liu committed Nov 20, 2019 at 16:45 UTC df6d3d6802abcb89a30f4808fcca3bfe1485ce34
1 file changed +4 -2
t/lib-bash.sh
+4 -2
@@ -2,10 +2,12 @@
2 # to run under Bash; primarily intended for tests of the completion
3 # script.
4
5 -if test -n "$BASH" && test -z "$POSIXLY_CORRECT"; then
5 +if test -n "$BASH" && test -z "$POSIXLY_CORRECT"
6 +then
7 # we are in full-on bash mode
8 true
8 -elif type bash >/dev/null 2>&1; then
9 +elif type bash >/dev/null 2>&1
10 +then
11 # execute in full-on bash mode
12 unset POSIXLY_CORRECT
13 exec bash "$0" "$@"