mbusb / multibootusb

Create multiboot live Linux on a USB disk...
http://multibootusb.org/
GNU General Public License v2.0
1.39k stars 201 forks source link

CRLF makes setup.py not executable on Linux #506

Open mathieu-aubin opened 4 years ago

mathieu-aubin commented 4 years ago

Well, at least on Fedora 31, without running dos2unix on the file, i get a CRLF error such as

-bash: ./setup.py: /usr/bin/python3^M: bad interpreter: No such file or directory

I suggest getting rid of CRLF line terminations within this project. Here is a simple file invocation on *.py within repo root:

install.py:   Python script, ASCII text executable
setup.py:     Python script, ASCII text executable, with CRLF line terminators
uninstall.py: Python script, ASCII text executable
mathieu-aubin commented 4 years ago

a find command returned the following as far as CRLF files

./setup.py: Python script, ASCII text executable, with CRLF line terminators
./scripts/mbusb_gui.py: Python script, ASCII text executable, with CRLF line terminators
./scripts/admin.py: Python script, UTF-8 Unicode text executable, with CRLF line terminators

command:

# find ./ -type f -iname '*.py' -exec file {} \;|grep CRLF