diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-10-14 09:53:12 +0300 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-10-14 09:53:12 +0300 |
| commit | 6c3d5c3a87b00a86125b578c3a2a7f5304d93229 (patch) | |
| tree | 91660ef87711e76df933041f49655f402f431926 | |
| parent | 616e1b0c3b97cb4b771b4c0c12119142f188c0ae (diff) | |
| download | pfetch-6c3d5c3a87b00a86125b578c3a2a7f5304d93229.tar.gz | |
pfetch: Fix android sed
| -rwxr-xr-x | pfetch | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1302,8 +1302,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. |
