From 69406ea2fe3183abc7e94c3cb2f0cf378f7c2477 Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Fri, 21 Aug 2015 08:58:11 +0100 Subject: Fix tests that broke since printf bash change The printf change in d5dbddf68c45dfff380d6e6767de401054024a19 caused the escape sequences to be returned differently. This commit fixes tests that were expecting the escape sequences to be changed from \\033 to \\E. --- test-commits.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test-commits.sh') diff --git a/test-commits.sh b/test-commits.sh index 4199c2a..0cca0e5 100755 --- a/test-commits.sh +++ b/test-commits.sh @@ -374,9 +374,9 @@ test_zsh_and_bash_local_commits() { local zsh_both="%{[yellow]%}⇵%{%}" local zsh_down="%{[red]%}↓%{%}" - local bash_up="\033[1;32m↑\033[0m" - local bash_both="\033[1;33m⇵\033[0m" - local bash_down="\033[1;31m↓\033[0m" + printf -v bash_up "\033[1;32m↑\033[0m" + printf -v bash_both "\033[1;33m⇵\033[0m" + printf -v bash_down "\033[1;31m↓\033[0m" cd_to_tmp "remote" -- cgit v1.2.3