99x-Delivery-Framework / PHR-Code-Analysis

0 stars 1 forks source link

bad interpreter: No such file or directory #1

Open keshav1002 opened 2 months ago

keshav1002 commented 2 months ago

I got this error when running the script on my machine.

/bin/bash^M: bad interpreter: No such file or directory

Laptop
Model Apple M2 Pro
OS MacOS Sonoma 14.4.1 (23E224)
Tools
Node JS 18.18.0
Ruby 3.2.2
Java 21.0.1 2023-10-17 LTS
Docker Engine 24.0.6, build ed223bc
Docker Desktop 4.25.2 (129061)
Docker Compose v2.23.0-desktop.1
Microsoft Office (Word & Excel) Not Installed
keshav1002 commented 2 months ago

This issue occurs due to a mismatch in CR/LF line endings and the current operating system. It was reported this issue arose in an Apple M2 pro machine. To fix this run the following command in the terminal to remove the CR in CRLF line endings.

sed -i -e 's/\r$//' sonar.sh