Skip to content

Commit 403ee35

Browse files
committed
fix: update error and message formatting
1 parent 8433ba1 commit 403ee35

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gitswitch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RESET='\033[0m'
1010
if [ ! -t 1 ]; then RED=''; GREEN=''; BOLD=''; RESET=''; fi
1111

1212
error_exit() {
13-
printf "${RED}Error: %s${RESET}\n" "$1" >&2
13+
printf "${RED}Error: %b${RESET}\n" "$1" >&2
1414
exit 1
1515
}
1616

install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ RESET='\033[0m'
1616
if [ ! -t 1 ]; then RED=''; YELLOW=''; GREEN=''; BOLD=''; RESET=''; fi
1717

1818
error_exit() {
19-
printf "${RED}Error: %s${RESET}\n" "$1" >&2
19+
printf "${RED}Error: %b${RESET}\n" "$1" >&2
2020
exit 1
2121
}
2222

2323
warn() {
24-
printf "${YELLOW}${BOLD}⚠️${RESET} %s\n" "$1" >&2
24+
printf "${YELLOW}${BOLD}⚠️${RESET} %b\n" "$1" >&2
2525
}
2626

2727
info() {
28-
printf "${GREEN}${BOLD}${RESET} %s\n" "$1"
28+
printf "${GREEN}${BOLD}${RESET} %b\n" "$1"
2929
}
3030

3131
check_downloader() {

0 commit comments

Comments
 (0)