travis: Update
This commit is contained in:
parent
a46d2dec07
commit
27b2feb216
|
@ -11,12 +11,6 @@ before_install:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- time ./neofetch --travis -v
|
- time ./neofetch --travis -v
|
||||||
# See this wiki page for why we're disabling these errors.
|
|
||||||
# https://github.com/dylanaraps/neofetch/wiki/Shellcheck-Exclusions
|
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck neofetch; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck neofetch; fi
|
||||||
# The if statement is here to invert the exit code from grep.
|
|
||||||
# grep normally errors if no match is found but we want the opposite.
|
|
||||||
# We invert it so grep fails if a match is found.
|
|
||||||
# Check for lines longer than 100 chars.
|
# Check for lines longer than 100 chars.
|
||||||
# There are 3 lines that must be longer than 100 chars.
|
- if grep '.\{101\}' neofetch; then (exit 1); else (exit 0); fi
|
||||||
- if (("$(grep '.\{101\}' neofetch | wc -l)" > 3)); then (exit 1); else (exit 0); fi
|
|
||||||
|
|
Loading…
Reference in New Issue