-thumb="$thumbs/`echo -n $image | md5sum - | cut -d ' ' -f 1`_$size.png"
-if [ -f "$thumb" ]; then
- mtime_s="`stat -c %Y -- "$image"`"
- mtime_t="`stat -c %Y -- "$thumb"`"
+thumb="$thumbs/$(echo -n $image | md5sum - | cut -d ' ' -f 1)_$size.png"
+if [[ -f "$thumb" ]]; then
+ mtime_s="$(stat -c %Y -- "$image")"
+ mtime_t="$(stat -c %Y -- "$thumb")"