t/perf: factor out percent calculations
[gitweb.git] / t / t9903-bash-prompt.sh
index 994a676a6bfcb76d3e20c4421b859763041d0787..ab890d3d4b3e2a39bb787bd29d7865c46f64c7f6 100755 (executable)
@@ -526,7 +526,7 @@ test_expect_success 'prompt - bash color pc mode - branch name' '
        printf "BEFORE: (${c_green}\${__git_ps1_branch_name}${c_clear}):AFTER\\nmaster" >expected &&
        (
                GIT_PS1_SHOWCOLORHINTS=y &&
-               __git_ps1 "BEFORE:" ":AFTER" >"$actual"
+               __git_ps1 "BEFORE:" ":AFTER" >"$actual" &&
                printf "%s\\n%s" "$PS1" "${__git_ps1_branch_name}" >"$actual"
        ) &&
        test_cmp expected "$actual"