Skip to content

Commit 34b9568

Browse files
author
emmett1
committed
fix printf colourize
1 parent 0aa9868 commit 34b9568

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

scratch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,27 @@ nocolor() {
3535
}
3636

3737
msg() {
38-
printf '%s\n' "${GREEN}==>${CRESET} $1\n"
38+
printf "${GREEN}==>${CRESET} %s\n" "$1"
3939
}
4040

4141
msginst() {
42-
printf '%s\n' "[${GREEN}i${CRESET}] $1\n"
42+
printf "[${GREEN}i${CRESET}] %s\n" "$1"
4343
}
4444

4545
msgmiss() {
46-
printf '%s\n' "[${YELLOW}m${CRESET}] $1\n"
46+
printf "[${YELLOW}m${CRESET}] %s\n" "$1"
4747
}
4848

4949
msgnoinst() {
50-
printf '%s\n' "[-] $1\n"
50+
printf "[-] %s\n" "$1"
5151
}
5252

5353
msgerr() {
54-
printf '%s\n' "${RED}==> ERROR:${CRESET} $1\n" >&2
54+
printf "${RED}==> ERROR:${CRESET} %s\n" "$1" >&2
5555
}
5656

5757
msgwarn() {
58-
printf '%s\n' "${YELLOW}==> WARNING:${CRESET} $1\n" >&2
58+
printf "${YELLOW}==> WARNING:${CRESET} %s\n" "$1" >&2
5959
}
6060

6161
needroot() {

0 commit comments

Comments
 (0)