From 769110971f03a2a14c865c7b0cdafc7bf6d4b75e Mon Sep 17 00:00:00 2001 From: deepjyoti30 Date: Tue, 19 Feb 2019 01:41:11 +0530 Subject: [PATCH] Bugs --- kunst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kunst b/kunst index 25ce1fa..93f2e9f 100755 --- a/kunst +++ b/kunst @@ -24,12 +24,12 @@ get_cover_online() { # extract the albumcover from the json returned IMG_URL=$(curl -s "$API_URL" | jq -r '.playlists.data[0] | .picture_big') - if [ $IMG_URL = '' ] || [ $IMG_URL = 'null' ];then + if [ "$IMG_URL" = '' ] || [ "$IMG_URL" = 'null' ];then echo "error: Cover not found online" ARTLESS=true else echo "kunst: Cover found online" - wget -o $COVER $IMG_URL + wget -O "$COVER" "$IMG_URL" ARTLESS=false fi