Use \033 instead of \e for color codes, which seems to be more widely supported.
This commit is contained in:
@@ -9,7 +9,7 @@ function find_in_cwd_or_parent() {
|
||||
|
||||
function fail_if_not_git_repo() {
|
||||
if ! find_in_cwd_or_parent ".git" > /dev/null; then
|
||||
echo -e "\e[31mNot a git repository (or any of the parent directories)\e[0m"
|
||||
echo -e "\033[31mNot a git repository (or any of the parent directories)\033[0m"
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user