Skip to content

Commit 293e1ee

Browse files
committed
fix print spell check progress on Travis to avoid timeouts (followup 6cc58f3)
1 parent 7234255 commit 293e1ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/spell_check/check_spelling.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if [[ "$OSTYPE" =~ darwin* ]]; then
2828
fi
2929

3030
# ARGUMENTS
31-
INTERACTIVE=$( ( tty -s || [[ "$TRAVIS" =~ true ]] ) && echo YES || echo NO)
31+
INTERACTIVE=$( tty -s && echo YES || echo NO)
3232
DEBUG=NO
3333
OUTPUTLOG=""
3434
while getopts ":rdl:" opt; do
@@ -77,7 +77,7 @@ declare -A GLOBREP_IGNORE=()
7777
ERRORFOUND=NO
7878

7979
for I in $(seq -f '%02g' 0 $(($SPLIT-1)) ) ; do
80-
[[ "$INTERACTIVE" =~ YES ]] && printf "Progress: %d/%d\n" $I $SPLIT
80+
( [[ "$INTERACTIVE" =~ YES ]] || [[ "$TRAVIS" =~ true ]] ) && printf "Progress: %d/%d\n" $I $SPLIT
8181
SPELLFILE=spelling$I~
8282

8383
# 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)

0 commit comments

Comments
 (0)