fix: stupid error with double negation

This commit is contained in:
2022-06-17 12:00:45 +03:00
parent ab85c3efdf
commit 3febe188ac

View File

@@ -4,7 +4,7 @@ pactl list sources | grep -qi "Mute: yes"
state="$?" state="$?"
if [[ "$state" == "0" ]]; then if [[ "$state" == "0" ]]; then
echo "0" >/sys/devices/platform/huawei-wmi/leds/platform::micmute/brightness
else
echo "1" >/sys/devices/platform/huawei-wmi/leds/platform::micmute/brightness echo "1" >/sys/devices/platform/huawei-wmi/leds/platform::micmute/brightness
else
echo "0" >/sys/devices/platform/huawei-wmi/leds/platform::micmute/brightness
fi fi