Skip to content

Commit

Permalink
fix print spell check progress on Travis to avoid timeouts (followup 6…
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 21, 2017
1 parent 7234255 commit 293e1ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/spell_check/check_spelling.sh
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 293e1ee

Please sign in to comment.