shell '\r' Nosuch file or directory unexpect end of file

327 阅读1分钟

shell 脚本报错原因

  1. unexpect end of file
  2. Nosuch file or directory
  3. '\r'

出现上述情况时,可能是shell文件格式的问题。 可用notePad++ 转换文件格式从 windos Format 转换成 UNIX/OSX format