aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/waybar/executable_snx-vpn-toggle.sh
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-20 14:01:04 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-20 14:01:04 +0100
commitd90f59f78b7312da3ed55738a1d2fa11baa78843 (patch)
tree880768c717d8aeafbc7b2202d0a2c37f203dcdce /dot_config/waybar/executable_snx-vpn-toggle.sh
parent5b8bda580414d214f6156abe9ab66963ed6614f0 (diff)
downloaddotfiles-d90f59f78b7312da3ed55738a1d2fa11baa78843.tar.gz
dotfiles-d90f59f78b7312da3ed55738a1d2fa11baa78843.tar.bz2
dotfiles-d90f59f78b7312da3ed55738a1d2fa11baa78843.zip
fix(waybar): refactor A && B || C patterns to avoid shellcheck SC2015
Older shellcheck (Ubuntu's in CI) flags '[ test ] && cmd || true' as SC2015 because, despite the intent, A && B || C is not equivalent to if-then-else (C runs when A is true but B fails). Replace with explicit 'if … fi' or split into two 'A || continue' guards. Functionally identical, lint-clean across versions.
Diffstat (limited to 'dot_config/waybar/executable_snx-vpn-toggle.sh')
-rw-r--r--dot_config/waybar/executable_snx-vpn-toggle.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dot_config/waybar/executable_snx-vpn-toggle.sh b/dot_config/waybar/executable_snx-vpn-toggle.sh
index 12738af..c21643b 100644
--- a/dot_config/waybar/executable_snx-vpn-toggle.sh
+++ b/dot_config/waybar/executable_snx-vpn-toggle.sh
@@ -16,4 +16,4 @@ case "$state" in
esac
pid=$(pidof waybar || true)
-[ -n "$pid" ] && kill -SIGRTMIN+9 "$pid" 2>/dev/null || true
+if [ -n "$pid" ]; then kill -SIGRTMIN+9 "$pid" 2>/dev/null || true; fi