mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-21 00:31:15 -03:00
Fix missing "1 test failed" line
Also tweak colored output to reset before the newline instead of after, so travis behaves better (for some reason reset causes travis to display the line in black).
This commit is contained in:
@@ -14,14 +14,18 @@ end
|
||||
|
||||
function say
|
||||
set -l color_flags
|
||||
set -l suppress_newline
|
||||
while set -q argv[1]
|
||||
switch $argv[1]
|
||||
case -b -o -u
|
||||
set color_flags $color_flags $argv[1]
|
||||
case -n
|
||||
set suppress_newline 1
|
||||
case --
|
||||
set -e argv[1]
|
||||
break
|
||||
case -\*
|
||||
continue
|
||||
case \*
|
||||
break
|
||||
end
|
||||
@@ -35,10 +39,11 @@ function say
|
||||
|
||||
if set_color $color_flags $argv[1]
|
||||
set -e argv[1]
|
||||
echo $argv
|
||||
set -l stat $status
|
||||
echo -n $argv
|
||||
set_color reset
|
||||
or return $stat
|
||||
if test -z "$suppress_newline"
|
||||
echo
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user