fix print spell check progress on Travis to avoid timeouts (followup 6cc58f3869a7f0642a78ee8f379e0b7862292c0b)

This commit is contained in:
Denis Rouzaud 2017-02-21 16:00:39 +01:00
parent 72342557c3
commit 293e1ee01c

View File

@ -28,7 +28,7 @@ if [[ "$OSTYPE" =~ darwin* ]]; then
fi
# ARGUMENTS
INTERACTIVE=$( ( tty -s || [[ "$TRAVIS" =~ true ]] ) && echo YES || echo NO)
INTERACTIVE=$( tty -s && echo YES || echo NO)
DEBUG=NO
OUTPUTLOG=""
while getopts ":rdl:" opt; do
@ -77,7 +77,7 @@ declare -A GLOBREP_IGNORE=()
ERRORFOUND=NO
for I in $(seq -f '%02g' 0 $(($SPLIT-1)) ) ; do
[[ "$INTERACTIVE" =~ YES ]] && printf "Progress: %d/%d\n" $I $SPLIT
( [[ "$INTERACTIVE" =~ YES ]] || [[ "$TRAVIS" =~ true ]] ) && printf "Progress: %d/%d\n" $I $SPLIT
SPELLFILE=spelling$I~
# if correction contains an uppercase letter and is the same as the error character wise, this means that the error is searched as a full word and case sensitive (not incorporated in a bigger one)