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 4b660eca1e
commit 9736b9d59a

View file

@ -328,7 +328,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')