all.sh --keep-going: work if TERM is unset

This commit is contained in:
Gilles Peskine 2018-01-02 21:54:17 +01:00
parent 33df5b34f6
commit 92deeaa47f

View file

@ -284,7 +284,7 @@ if [ $KEEP_GOING -eq 1 ]; then
start_red=
end_color=
if [ -t 1 ]; then
case "$TERM" in
case "${TERM:-}" in
*color*|cygwin|linux|rxvt*|screen|[Eex]term*)
start_red=$(printf '\033[31m')
end_color=$(printf '\033[0m')