From c6b481063b013892517fc759f215253f5ef038fe Mon Sep 17 00:00:00 2001 From: 2Shirt <1923621+2Shirt@users.noreply.github.com> Date: Sun, 3 Jun 2018 15:56:58 -0600 Subject: [PATCH] Limit color fix --- backup-git-repos-to-b2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backup-git-repos-to-b2 b/backup-git-repos-to-b2 index 56f48b7..d20acb9 100755 --- a/backup-git-repos-to-b2 +++ b/backup-git-repos-to-b2 @@ -19,7 +19,9 @@ __helptext='NOTE: --temp-dir defaults to "$(mktemp -d)" if not specified.' source bash3boilerplate/main.sh # Color fix for rxvt-unicode (tell b3bp we're xterm) -TERM="xterm" +if [[ "${TERM}" =~ rxvt-unicode-.*color ]]; then + TERM="xterm" +fi # Functions function compress_repository() {