Skip to content
Snippets Groups Projects
Commit ed1df8bd authored by Bob Mottram's avatar Bob Mottram
Browse files

Quotes

parent 417a6fed
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment