KittyKatt / screenFetch

Fetches system/theme information in terminal for Linux desktop screenshots.
GNU General Public License v3.0
3.83k stars 453 forks source link

/usr/bin/screenfetch: line 1347: [[Not Found: command not found #644

Open LawrenceLemon1999 opened 4 years ago

LawrenceLemon1999 commented 4 years ago

image image

KittyKatt commented 4 years ago

Hey there, @LawrenceLemon1999 Could you do a screenfetch -V for me, please? I'm not sure what version you're running to see what line 1347 is. If you're not running v3.9.0, I would also suggest updating to that and seeing if the issue still persists. Thanks!

LawrenceLemon1999 commented 4 years ago

(1) if [["$gpu" = "intel"]]; then this is the 1347 line of mine. Actually this used to be if ["$gpu" = intel]; then I have the issue that appear awk: fatal: cannot open file `/proc/fb' for reading (No such file or directory) then I listen to some friends advise to change my screenfetch-dev According to this link: https://github.com/KittyKatt/screenFetch/commit/dc72b5932e86ba9c4e36110408690abeb2004070 (2)And I use sudo apt upgrade screenfetch but get only 3.8 version

image
KittyKatt commented 4 years ago

Whoever is maintaining the package for Ubuntu hasn't packaged the newly released v3.9.0. If you would like a working screenfetch in the meantime, I recommend git cloning the current master branch and using that. I will try to find out who is maintaining the Ubuntu package.

LawrenceLemon1999 commented 4 years ago

OK,thanks

rgerardi commented 4 years ago

I am also seeing this issue even with 3.9 or DEV cloned from master. It seems that the issue triggers when using the -d option with multiple variables:

$ ./screenfetch-dev -V
screenFetch - Version 3.9.0

$ screenfetch -n -N -d 'kernel,mem'
/usr/bin/screenfetch: line 6370: detectkernel mem: command not found
 Kernel:
 RAM:

While it works with a single variable:

$ screenfetch -n -N -d 'kernel'
 Kernel: x86_64 Linux 5.3.10-arch1-1
$ screenfetch -n -N -d 'mem'
 RAM: 3027MiB / 15898MiB
terminalforlife commented 4 years ago
if [["$gpu" = "intel"]]; then

Invalid syntax. Space it out.