From ed1df8bdf579c4a81a202e9610bd1a9d90aefe2b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 3 Apr 2017 22:54:39 +0100 Subject: [PATCH] Quotes --- src/freedombone-utils-gnusocialtools | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/freedombone-utils-gnusocialtools b/src/freedombone-utils-gnusocialtools index 24539777..aa9b6b5e 100755 --- a/src/freedombone-utils-gnusocialtools +++ b/src/freedombone-utils-gnusocialtools @@ -41,13 +41,13 @@ function pleroma_set_background_image_from_url { ext= if [ ${#url} -gt 0 ]; then - if [[ $url == *".jpeg" || $url == *".jpg" ]]; then + if [[ "$url" == *".jpeg" || "$url" == *".jpg" ]]; then ext="jpg" fi - if [[ $url == *".png" ]]; then + if [[ "$url" == *".png" ]]; then ext="png" fi - if [[ $url == *".gif" ]]; then + if [[ "$url" == *".gif" ]]; then ext="gif" fi fi @@ -62,7 +62,7 @@ function pleroma_set_background_image_from_url { fi # get the new image - wget $url -O bg_custom.${ext} + wget "$url" -O bg_custom.${ext} if [ ! -f bg_custom.${ext} ]; then echo "$url" echo $'Custom background image for pleroma could not be downloaded'