rowingdude/analyzeMFT

Missing shebang in script analyzeMFT.py

wbi-ocd opened this issue · 0 comments

Shebang (#!/usr/bin/env python3) is not specified in https://github.com/rowingdude/analyzeMFT/blob/master/analyzeMFT.py, therefore the script could not be run when pip installed :

analyzeMFT.py --version
<CENSORED>/bin/analyzeMFT.py: line 1: import: command not found
<CENSORED>/bin/analyzeMFT.py: line 2: import: command not found
<CENSORED>/bin/analyzeMFT.py: line 3: import: command not found
<CENSORED>/bin/analyzeMFT.py: line 4: from: command not found
<CENSORED>/bin/analyzeMFT.py: line 5: $'\r': command not found
<CENSORED>/bin/analyzeMFT.py: line 7: syntax error near unexpected token `0,'
<CENSORED>/bin/analyzeMFT.py: line 7: `sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), 'src')))

Solution:

Add at the top of the script

#!/usr/bin/env python3