diff options
author | Michael Allen <michael@michaelallen.io> | 2015-08-21 08:58:11 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-08-21 08:58:34 +0100 |
commit | 69406ea2fe3183abc7e94c3cb2f0cf378f7c2477 (patch) | |
tree | 53c3696672840a4f4be7bdb99cf52aa8ca0c82ba /test-commits.sh | |
parent | c29c2b0c90b65387d2ca28263802d738e6c04c43 (diff) | |
download | git-sonar-69406ea2fe3183abc7e94c3cb2f0cf378f7c2477.tar.gz git-sonar-69406ea2fe3183abc7e94c3cb2f0cf378f7c2477.zip |
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.
Diffstat (limited to 'test-commits.sh')
-rwxr-xr-x | test-commits.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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" |