Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

get_battery produces errors in -v #2129

@RichardBronosky

Description

@RichardBronosky

Description

Calling neofetch -v shows No such file or directory for 2 of these 3 values because a system wil [likely] only have 1 of the 3:
BAT, axp288_fuel_gauge, CMB
You can recreate this on a Linux laptop via:

filename="/tmp/bug"
neofetch -v --config none --print_config | sed -E 's/# (info .* battery$)/\1/' > "$filename"
neofetch -v --config "$filename"

Neofetch version

$ neofetch --version
Neofetch 7.1.0

$ git log -n1
commit ccd5d9f52609bbdcd5d8fa78c4fdb0f12954125f
Merge: 644f9d29 3eaac2d9
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Fri Dec 10 08:41:55 2021 +0200

    Merge branch 'master' of github.com:dylanaraps/neofetch

Config file

https://gist.github.com/RichardBronosky/a5207af7702fb6b0c92b0a12c2bcb98e#file-neofetch-conf

Verbose log

https://gist.github.com/RichardBronosky/a5207af7702fb6b0c92b0a12c2bcb98e#file-neofetchlog-bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions