ThatOneCalculator / NerdFetch

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

WSL is not Android #50

Closed polluks closed 9 months ago

polluks commented 9 months ago

$ ./nerdfetch
./nerdfetch: 19: ./nerdfetch: getprop: not found

      ___     stefan@Stefan-PC
     (.. \    󰀲  Android
     (<> |      4.4.0
    //  \ \   󰍛  8707/16335 MiB (53%)
   ( |  | /|  󰏔  0 (pacstall)
  _/\ __)/_)  󰅶  3 minutes
  \/-____\/     ██████████████████
$ uname -a
Linux Stefan-PC 4.4.0-19041-Microsoft #3636-Microsoft Thu Oct 19 17:41:00 PST 2023 x86_64 GNU/Linux
ThatOneCalculator commented 9 months ago

You may be using a non-POSIX shell on WSL. It'll only mark itself as android if the getprop command is found (see the first few lines of the program)

polluks commented 9 months ago

Well, my sh is a dash: "The current version of dash is in the process of being changed to conform with the POSIX 1003.2 and 1003.2a specifications for the shell."

ThatOneCalculator commented 9 months ago

Closed by https://github.com/ThatOneCalculator/NerdFetch/commit/e5264b4fbb76fe832f3b9aa164a8cc5baf3b2bd1