ThatOneCalculator / NerdFetch

A POSIX *nix fetch script using Nerdfonts
https://aur.archlinux.org/packages/nerdfetch/
MIT License
478 stars 24 forks source link

Fallback for os-release? #49

Closed polluks closed 9 months ago

polluks commented 9 months ago

Our provider removed this file. nerdfetch: line 23: /etc/os-release: No such file or directory

      ___     ********@web32.alfahosting-server.de
     (.. \    
     (<> |      4.18.0
    //  \ \   󰍛  25153/39949 MiB (62%)
   ( |  | /|  󰏔  516 (bin)
  _/\ __)/_)  󰅶  175 days, 16 hours, 39 mins
  \/-____\/     ██████████████████

By the way


$ cat /proc/version
Linux version 4.18.0-477.13.1.lve.el7h.x86_64 (mockbuild@rbuildfarm03.corp.cloudlinux.com) (gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC)) #1 SMP Thu Jun 1 16:49:27 UTC 2023
ThatOneCalculator commented 9 months ago

/proc/version doesn't give the distro name. You should maybe be using a different provider if they're removing critical files and giving you an outdated/insecure kernel version...

ThatOneCalculator commented 9 months ago

What's the output of

polluks commented 9 months ago

/proc/version doesn't give the distro name. You should maybe be using a different provider if they're removing critical files and giving you an outdated/insecure kernel version...

"Red Hat" is a the distro name IMHO. In the past we had Debian.

ThatOneCalculator commented 9 months ago

I'm not going to parse through all that, it's incredibly unreliable. Can you please just give the outputs of the two commands I posted?

polluks commented 9 months ago

Indeed, however there was no output at all.

Am Fr., 19. Jan. 2024 um 17:30 Uhr schrieb Kainoa Kanter < @.***>:

I'm not going to parse through all that, it's incredibly unreliable. Can you please just give the outputs if the two commands I posted?

— Reply to this email directly, view it on GitHub https://github.com/ThatOneCalculator/NerdFetch/issues/49#issuecomment-1900726533, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABD5J5LVFSYLGXYERJB6UMDYPKNS3AVCNFSM6AAAAABCAKAM3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQG4ZDMNJTGM . You are receiving this because you authored the thread.Message ID: @.***>

ThatOneCalculator commented 9 months ago

There's no output for the ls and for the lsb_release -a?

polluks commented 9 months ago

No other files or commands. Just /proc gave me the hint about Red Hat.

ThatOneCalculator commented 9 months ago

Not having lsb_release is VERY concerning. LSB means "Linux Standard Base". I'm sorry, but you're simply using too esoteric of a system to reasonably support.