Bob Mottram преди 8 години
родител
ревизия
ed1df8bdf5
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4
    4
      src/freedombone-utils-gnusocialtools

+ 4
- 4
src/freedombone-utils-gnusocialtools Целия файл

41
 
41
 
42
     ext=
42
     ext=
43
     if [ ${#url} -gt 0 ]; then
43
     if [ ${#url} -gt 0 ]; then
44
-        if [[ $url == *".jpeg" || $url == *".jpg" ]]; then
44
+        if [[ "$url" == *".jpeg" || "$url" == *".jpg" ]]; then
45
             ext="jpg"
45
             ext="jpg"
46
         fi
46
         fi
47
-        if [[ $url == *".png" ]]; then
47
+        if [[ "$url" == *".png" ]]; then
48
             ext="png"
48
             ext="png"
49
         fi
49
         fi
50
-        if [[ $url == *".gif" ]]; then
50
+        if [[ "$url" == *".gif" ]]; then
51
             ext="gif"
51
             ext="gif"
52
         fi
52
         fi
53
     fi
53
     fi
62
             fi
62
             fi
63
 
63
 
64
             # get the new image
64
             # get the new image
65
-            wget $url -O bg_custom.${ext}
65
+            wget "$url" -O bg_custom.${ext}
66
             if [ ! -f bg_custom.${ext} ]; then
66
             if [ ! -f bg_custom.${ext} ]; then
67
                 echo "$url"
67
                 echo "$url"
68
                 echo $'Custom background image for pleroma could not be downloaded'
68
                 echo $'Custom background image for pleroma could not be downloaded'