screenFetch icon indicating copy to clipboard operation
screenFetch copied to clipboard

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

Open LawrenceLemon1999 opened this issue 6 years ago • 6 comments

image image

LawrenceLemon1999 avatar Oct 06 '19 04:10 LawrenceLemon1999

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!

KittyKatt avatar Oct 06 '19 16:10 KittyKatt

(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

LawrenceLemon1999 avatar Oct 06 '19 16:10 LawrenceLemon1999

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.

KittyKatt avatar Oct 06 '19 18:10 KittyKatt

OK,thanks

LawrenceLemon1999 avatar Oct 07 '19 06:10 LawrenceLemon1999

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

rgerardi avatar Nov 11 '19 22:11 rgerardi

if [["$gpu" = "intel"]]; then

Invalid syntax. Space it out.

terminalforlife avatar Feb 06 '20 14:02 terminalforlife