check for emptyness not non existence of variable

This commit is contained in:
DeaDvey 2024-11-03 20:14:13 +00:00
parent 62c0568d58
commit d8496a0b78

View File

@ -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 "<h1>Currently listening to:</h1>" > $webpage_path
echo Name: $name"<br/>" >> $webpage_path
echo Artist: $artist"<br/>" >> $webpage_path