'/photo_thumb.sh: line 7: `function thumb(){
root@LOL:/volume1/photo/2# sh ./photo_thumb.sh
./photo_thumb.sh: line 1: $'\r': command not found
./photo_thumb.sh: line 6: $'\r': command not found
./photo_thumb.sh: line 7: syntax error near unexpected token `$'{\r''
'/photo_thumb.sh: line 7: `function thumb(){