set: Illegal option -解决方案
Q:
终端运行.sh报错:***.sh: 2: set: Illegal option -
A:
solution:Remove trailing \r character that causes this error!
命令:
sed -i 's/\r$//' filename
Q:
终端运行.sh报错:***.sh: 2: set: Illegal option -
A:
solution:Remove trailing \r character that causes this error!
命令:
sed -i 's/\r$//' filename