Skip to content

Commit

Permalink
Silencing the error message
Browse files Browse the repository at this point in the history
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
  • Loading branch information
rdwebdesign authored and yubiuser committed Mar 12, 2023
1 parent 1ff7c44 commit 05cfda1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion padd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ GetSystemInformation() {

# CPU temperature
if [ -d "/sys/devices/platform/coretemp.0/hwmon/" ]; then
cpu=$(cat "$(find /sys/devices/platform/coretemp.0/hwmon/ -maxdepth 2 -name "temp1_input" 2>/dev/null | head -1)")
cpu=$(cat "$(find /sys/devices/platform/coretemp.0/hwmon/ -maxdepth 2 -name "temp1_input" 2>/dev/null | head -1)" 2>/dev/null)
fi
if [ -z "${cpu}" ] && [ -f /sys/class/thermal/thermal_zone0/temp ]; then
cpu=$(cat /sys/class/thermal/thermal_zone0/temp)
Expand Down

0 comments on commit 05cfda1

Please sign in to comment.