From 0f1d6845dbc836be234b6a205d6b52ad6c5ad0eb Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 14 Oct 2019 19:05:36 +0300 Subject: [PATCH] pfetch: revert unrelated commit. --- pfetch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pfetch b/pfetch index 235b8d5..7015283 100755 --- a/pfetch +++ b/pfetch @@ -1363,8 +1363,12 @@ get_ascii() { # output without the use of a pipe ('|'). # This ensures that any variables defined in the while loop # are still accessible in the script. + # + # The 'awk' command below used to be a simple 'sed', however + # some versions of Android shipped with a totally broken 'sed' + # command from 'toybox' and so we're forced to avoid 'sed'. done <<-EOF - $(printf %s "$ascii" | sed 's/\[3.m//g') + $(printf %s "$ascii" | awk '{gsub("\\[3.m","");print}') EOF # Add a gap between the ascii art and the information.