From f86d97e904681dccbb92fe52a2d4fd2784ecbd55 Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Sat, 18 Jan 2025 19:07:16 +0100 Subject: [PATCH] brightness-i2c: fix warning --- lib/prompt-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prompt-init b/lib/prompt-init index ae8a5ea..3bf7c01 100755 --- a/lib/prompt-init +++ b/lib/prompt-init @@ -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