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