0

My Hyperledger explorer script is not executing in the terminal, gives a "no such file or directory error" even though it is clearly in the directory.

I list all the files in the directory (notice start.sh is in there)

ubuntu@jb-hyperledger:~/bludev/blockchain-explorer$ ls app CONTRIBUTING.md main.js node_modules README.md client LICENSE MAINTAINERS.rst package.json start.sh

I then get this error when i try to execute

ubuntu@jb-hyperledger:~/bludev/blockchain-explorer$ ./start.sh -bash: ./start.sh: /bin/bash^M: bad interpreter: No such file or directory

please assist, thank you

Ben Akin
  • 167
  • 2
  • 15

1 Answers1

0

Yep, the answer was indeed to do

dos2unix start.sh

thanks

Ben Akin
  • 167
  • 2
  • 15