From: mar77i Date: Sun, 13 Jul 2025 18:44:43 +0000 (+0200) Subject: sync.sh: use explicit -n in bash [[, openbox rc: add multimediakeys X-Git-Url: https://git.mar77i.info/?a=commitdiff_plain;h=24a7f46326dba86175f2cfead92b1d42db27f122;p=dotfiles sync.sh: use explicit -n in bash [[, openbox rc: add multimediakeys --- diff --git a/rc.xml b/rc.xml index 2fddc44..3edfcb3 100644 --- a/rc.xml +++ b/rc.xml @@ -222,17 +222,17 @@ lxqt-runner - + pactl set-sink-volume @DEFAULT_SINK@ -5% - + pactl set-sink-volume @DEFAULT_SINK@ +5% - + pactl set-sink-mute @DEFAULT_SINK@ toggle diff --git a/sync.sh b/sync.sh index b166a42..5bd743d 100755 --- a/sync.sh +++ b/sync.sh @@ -30,7 +30,7 @@ update_cache() { is_file_dirty() { ! git diff-files --quiet -- "${1}" 2>/dev/null \ - || [[ $(git ls-files --others -- "${1}") ]] + || [[ -n $(git ls-files --others -- "${1}") ]] } sync_to_tree() {