fix warnings when CONTINUOUS_INTEGRATION env var is unset

This commit is contained in:
Michael Stapelberg 2015-03-16 22:38:39 +01:00
parent c35b3160f6
commit d1f99abf75
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@ sub noninteractive {
# CONTINUOUS_INTEGRATION gets set when running under Travis, see # CONTINUOUS_INTEGRATION gets set when running under Travis, see
# http://docs.travis-ci.com/user/ci-environment/ and # http://docs.travis-ci.com/user/ci-environment/ and
# https://github.com/travis-ci/travis-ci/issues/1337 # https://github.com/travis-ci/travis-ci/issues/1337
return (! -t STDOUT) || $ENV{CONTINUOUS_INTEGRATION} eq 'true'; return (! -t STDOUT) || (
defined($ENV{CONTINUOUS_INTEGRATION}) &&
$ENV{CONTINUOUS_INTEGRATION} eq 'true');
} }
# setup %ansi_line_upwards to map all working displays to the # setup %ansi_line_upwards to map all working displays to the