You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
555 B

diff -u -r ../screenFetch-3.9.0/screenfetch-dev ./screenfetch-dev
--- ../screenFetch-3.9.0/screenfetch-dev 2019-09-28 09:52:10.000000000 +0000
+++ ./screenfetch-dev 2019-10-06 08:11:06.979812728 +0000
@@ -1566,7 +1566,7 @@
hwmonfile=""
[ -e "$dir/name" ] && hwmonfile=$dir/name
[ -e "$dir/device/name" ] && hwmonfile=$dir/device/name
- [ -n "$hwmonfile" ] && if grep -q 'coretemp' "$hwmonfile"; then
+ [ -n "$hwmonfile" ] && [ -r "$hwmonfile" ] && if grep -q 'coretemp' "$hwmonfile"; then
thermal="$dir/temp1_input"
break
fi