From d8496a0b78941c321b09fda5555ccb0842b93921 Mon Sep 17 00:00:00 2001 From: DeaDvey Date: Sun, 3 Nov 2024 20:14:13 +0000 Subject: [PATCH] check for emptyness not non existence of variable --- mpvmusic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpvmusic.sh b/mpvmusic.sh index 076207a..c5617b5 100755 --- a/mpvmusic.sh +++ b/mpvmusic.sh @@ -30,7 +30,7 @@ while [ 1 == 1 ]; do echo Song name: $name echo Artist: $artist - if [ -z $webpage_path ]; then + if [ -n $webpage_path ]; then echo "

Currently listening to:

" > $webpage_path echo Name: $name"
" >> $webpage_path echo Artist: $artist"
" >> $webpage_path