Only shift if verb was supplied

This commit is contained in:
Foo 2017-12-02 18:24:01 +03:00
parent 1b0df9c2bd
commit b558d200fe
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ fail() {
local test_name="$1" ; shift
local fail_char="$allow_failure$1" ; shift
local message="$1" ; shift
local verb="${1:-Failed}" ; shift
local verb="${1:-Failed}" ; test $# -ge 1 && shift
local full_msg="$fail_char $POWERLINE_CURRENT_SUITE|$test_name :: $message"
FAIL_SUMMARY="${FAIL_SUMMARY}${NL}${full_msg}"
echo "$verb: $full_msg"