multibootusb icon indicating copy to clipboard operation
multibootusb copied to clipboard

CRLF makes setup.py not executable on Linux

Open mathieu-aubin opened this issue 5 years ago • 1 comments

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 avatar Apr 13 '20 01:04 mathieu-aubin

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

mathieu-aubin avatar Apr 13 '20 01:04 mathieu-aubin