aboutsummaryrefslogtreecommitdiff
path: root/conky/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'conky/test.sh')
-rwxr-xr-xconky/test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/conky/test.sh b/conky/test.sh
index 9227167..7108e59 100755
--- a/conky/test.sh
+++ b/conky/test.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# commend example
# sudo hddtemp /dev/sda
-if [ $(sensors | grep -P "k10temp-pci-00c3") == "k10temp-pci-00c3" ];then
+if [[ $(sensors | grep -P "k10temp-pci-00c3") == "k10temp-pci-00c3" ]];then
amdtemp=$(sensors | grep temp1 | grep "(high" | awk -F' ' '{print $2}' | cut -d+ -f2)
echo "\${color white}\${freq}MHz / $amdtemp (\${cpu cpu1}%) \${alignr}\${freq}MHz / $amdtemp (\${cpu cpu2}%)"
echo "\${color green}\${cpubar cpu1 5,120} \${alignr}\${color green}\${cpubar cpu2 5,120}"