dos2unix
: not foundsh: line 4:
You have somehow added a CR character to each line. Fix by using dos2unix.
1.
root@slitaz:~# sh ./raspbian.sh
: not foundsh: line 4:
test tap...
: not foundsh: line 7:
: not foundsh: line 9:
./raspbian.sh: cd: line 10: can't cd to /media/Audio1/raspi/raspbian
/root
: not foundsh: line 12:
2.
root@slitaz:~# dos2unix -u raspbian.sh
3.
root@slitaz:~# ./raspbian.sh
test tap...
/media/Audio1/raspi/raspbian
root@slitaz:~#
4.
Usage: dos2unix [-ud] [FILE]
Convert FILE in-place from DOS to Unix format.
When no file is given, use stdin/stdout.
Options:
-u dos2unix
-d unix2dos