brightness-i2c: fix warning

This commit is contained in:
Martin Sekera 2025-01-18 19:07:16 +01:00
parent b7f290e0fa
commit f86d97e904

View file

@ -9,7 +9,7 @@ which ddcutil > /dev/null
if [[ $? -eq 0 ]]; then
local I2C_IDS=($(ddcutil detect --terse | grep "I2C bus" | sed "s/^.*-//"))
mkdir -p $XDG_RUNTIME_DIR/over
echo ${(j|:|)I2C_IDS} > $XDG_RUNTIME_DIR/over/monitors-i2c
echo ${(j|:|)I2C_IDS} >! $XDG_RUNTIME_DIR/over/monitors-i2c
fi
if [[ -a "$OVER_PROMPT_CFG" ]]; then