error fix
cd not working in sh script
problem I had a shell script like the following and I was trying to run it with $ sh somescript.sh but it kept failing with the error something liek “cd: no directory”. Solution After resaving the script file with LF instead of CRLF, the script worked. I was using intellij Read more…