Skip to content

Commit e4c3cff

Browse files
committed
fix: clean up portability concerns with \e
1 parent d8d33e4 commit e4c3cff

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ build/
2929
.env
3030
.env.*
3131
!.env.example
32+
33+
34+
change-summary.md

lib/gitcmds.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

3-
GREEN='\e[32m'
4-
GREY='\e[2m'
5-
RESET='\e[0m'
3+
GREEN='\033[32m'
4+
GREY='\033[2m'
5+
RESET='\033[0m'
66

77
gecho() { printf "${GREEN}%s${RESET}\n" "$*"; }
88

@@ -26,7 +26,7 @@ gitprune() {
2626
{ git gc --prune=now && git fetch -p; } 2>&1 | show_progress
2727
gecho "Running garbage collection"
2828
git gc 2>&1 | show_progress
29-
gecho "Pruned and cleaned."
29+
gecho "[DONE] Pruned and cleaned."
3030
}
3131

3232
gitrefresh() {

0 commit comments

Comments
 (0)