mirror of
https://github.com/speed47/spectre-meltdown-checker.git
synced 2025-07-04 09:59:06 +02:00
Merge a4e13337b80870fc613d7eab93a1cea401a1dae7 into 19b01078c2b2636c77677813321c70fa5663e6bd
This commit is contained in:
commit
a4692dc81d
@ -130,7 +130,7 @@ __echo()
|
||||
msg="$@"
|
||||
if [ "$opt_no_color" = 1 ] ; then
|
||||
# strip ANSI color codes
|
||||
msg=$(echo "$msg" | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g")
|
||||
msg=$(/bin/echo -e "$msg" | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g")
|
||||
fi
|
||||
# explicitely call /bin/echo to avoid shell builtins that might not take options
|
||||
/bin/echo $opt -e "$msg"
|
||||
|
Loading…
x
Reference in New Issue
Block a user