mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-06-05 09:55:53 +00:00
lxc-checkconfig: fix colors when using dash
The \e did not work as expected on dash. Replace with proper posix \033 Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
d27b0806cd
commit
bc2333ebec
@ -4,10 +4,10 @@
|
||||
: ${CONFIG:=/proc/config.gz}
|
||||
: ${GREP:=zgrep}
|
||||
|
||||
SETCOLOR_SUCCESS="printf \\e[1;32m"
|
||||
SETCOLOR_FAILURE="printf \\e[1;31m"
|
||||
SETCOLOR_WARNING="printf \\e[1;33m"
|
||||
SETCOLOR_NORMAL="printf \\e[0;39m"
|
||||
SETCOLOR_SUCCESS="printf \\033[1;32m"
|
||||
SETCOLOR_FAILURE="printf \\033[1;31m"
|
||||
SETCOLOR_WARNING="printf \\033[1;33m"
|
||||
SETCOLOR_NORMAL="printf \\033[0;39m"
|
||||
|
||||
is_set() {
|
||||
$GREP -q "$1=[y|m]" $CONFIG
|
||||
|
Loading…
Reference in New Issue
Block a user