NeonHorizon / lipopi

Guide to setting up LiPo batteries on the Raspberry Pi
GNU General Public License v3.0
416 stars 62 forks source link

error during run process #47

Closed Davud2020 closed 5 years ago

Davud2020 commented 5 years ago
# ./low_bat_shutdown.sh 
bash: ./low_bat_shutdown.sh: /bin/bash^M: bad interpreter: No such file or directory

solution:

# sed -i -e 's/\r$//' low_bat_shutdown
NeonHorizon commented 5 years ago

This happens when a file is created with a text editor which uses Windows line endings instead of Unix line endings.

If you are using Windows I recommend you use Sublime Text, or Notepad++ or one of the other code editors rather than Windows Notepad, etc.