root@DSM6:/volume1/photo/test# chmod 777 photo_thumb.sh
root@DSM6:/volume1/photo/test# 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(){
楼主。请教一下,始终报错是什么情况呢