Q:
Terminal running .sh error: ***.sh: 2: set: Illegal option-
A:
solution: Remove trailing \r character that causes this error!
command:
sed -i 's/\r$//' filename
Q:
Terminal running .sh error: ***.sh: 2: set: Illegal option-
A:
solution: Remove trailing \r character that causes this error!
command:
sed -i 's/\r$//' filename