check for emptyness not non existence of variable
This commit is contained in:
parent
62c0568d58
commit
d8496a0b78
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user