Commit bc2333eb by Natanael Copa Committed by Stéphane Graber

lxc-checkconfig: fix colors when using dash

The \e did not work as expected on dash. Replace with proper posix \033 Signed-off-by: 's avatarNatanael Copa <ncopa@alpinelinux.org> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent d27b0806
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
: ${CONFIG:=/proc/config.gz} : ${CONFIG:=/proc/config.gz}
: ${GREP:=zgrep} : ${GREP:=zgrep}
SETCOLOR_SUCCESS="printf \\e[1;32m" SETCOLOR_SUCCESS="printf \\033[1;32m"
SETCOLOR_FAILURE="printf \\e[1;31m" SETCOLOR_FAILURE="printf \\033[1;31m"
SETCOLOR_WARNING="printf \\e[1;33m" SETCOLOR_WARNING="printf \\033[1;33m"
SETCOLOR_NORMAL="printf \\e[0;39m" SETCOLOR_NORMAL="printf \\033[0;39m"
is_set() { is_set() {
$GREP -q "$1=[y|m]" $CONFIG $GREP -q "$1=[y|m]" $CONFIG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment