diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-09-28 07:01:50 +0300 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-09-28 07:01:50 +0300 |
| commit | 68d2422a1be06c99b5b97047cc2aaedc5be9f914 (patch) | |
| tree | 04989aeb87bbd5c1b3c08305556726d8b73e2fff | |
| parent | 55b78b9e58a1f2fdc7b7eb78ba9d7fe9b1554a55 (diff) | |
| download | pfetch-68d2422a1be06c99b5b97047cc2aaedc5be9f914.tar.gz | |
os: fixed lsb_release, closes #14
| -rwxr-xr-x | pfetch | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -154,6 +154,12 @@ get_os() { if command -v lsb_release; then distro=$(lsb_release -sd) + # lsb_release sometimes adds quotes around the output, + # this simply remove quotes from the start/end if they + # exist. + distro=${distro##\"} + distro=${distro%%\"} + else # Disable warning about shellcheck not being able # to read '/etc/os-release'. This is fine. |
