Technical Note: [Accelops KB] Problem - Running 'phdownloadimage.local' to upgrade gives error '-bash: ./phdownloadimage.local: /bin/bash^M: bad interpreter: No such file or directory'
Description
Summary of Topic
When running 'phdownloadimage.local' to upgrade I received error "-bash: ./phdownloadimage.local: /bin/bash^M: bad interpreter: No such file or directory".
This is caused by the file having WIndows line feed characters (^M) in the file. Maybe the script was opened in a text editor on Windows at some point.
Resolution
run the command 'dos2unix' at the command line.
# dos2unix phdownloadimage.local
Now you can run the phdownload.local script again.
Additional Resources
n/a
Version application
All
