Quotes
This commit is contained in:
parent
417a6fed14
commit
ed1df8bdf5
|
@ -41,13 +41,13 @@ function pleroma_set_background_image_from_url {
|
||||||
|
|
||||||
ext=
|
ext=
|
||||||
if [ ${#url} -gt 0 ]; then
|
if [ ${#url} -gt 0 ]; then
|
||||||
if [[ $url == *".jpeg" || $url == *".jpg" ]]; then
|
if [[ "$url" == *".jpeg" || "$url" == *".jpg" ]]; then
|
||||||
ext="jpg"
|
ext="jpg"
|
||||||
fi
|
fi
|
||||||
if [[ $url == *".png" ]]; then
|
if [[ "$url" == *".png" ]]; then
|
||||||
ext="png"
|
ext="png"
|
||||||
fi
|
fi
|
||||||
if [[ $url == *".gif" ]]; then
|
if [[ "$url" == *".gif" ]]; then
|
||||||
ext="gif"
|
ext="gif"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -62,7 +62,7 @@ function pleroma_set_background_image_from_url {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# get the new image
|
# get the new image
|
||||||
wget $url -O bg_custom.${ext}
|
wget "$url" -O bg_custom.${ext}
|
||||||
if [ ! -f bg_custom.${ext} ]; then
|
if [ ! -f bg_custom.${ext} ]; then
|
||||||
echo "$url"
|
echo "$url"
|
||||||
echo $'Custom background image for pleroma could not be downloaded'
|
echo $'Custom background image for pleroma could not be downloaded'
|
||||||
|
|
Loading…
Reference in New Issue