From 0e0f27bdbf111f7c0e48a37fe58f954bffe9f4bf Mon Sep 17 00:00:00 2001 From: Alejandro Amaral Date: Sun, 12 Jan 2025 13:04:03 -0300 Subject: [PATCH] fix: syntax improvement --- src/music-tmux-statusbar.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/music-tmux-statusbar.sh b/src/music-tmux-statusbar.sh index 913b2f8..5911c50 100755 --- a/src/music-tmux-statusbar.sh +++ b/src/music-tmux-statusbar.sh @@ -75,8 +75,8 @@ elif command -v nowplaying-cli >/dev/null; then # fix for the bug in nowplaying-cli. # See https://github.com/janoamaral/tokyo-night-tmux/issues/107#issuecomment-2576211115 - if [[ "$OSTYPE" == "darwin"* ]]; then - if [ "$STATUS" = "playing" ]; then + if [[ $OSTYPE == "darwin"* ]]; then + if [ $STATUS == "playing" ]; then echo "$POSITION" >/tmp/last_position fi