[Ilugc] What is wrong in this script ?
- From: lgp171188@xxxxxxxxx (L. Guruprasad)
- Date: Thu, 28 Jul 2011 20:48:09 +0530
On Thursday 28 July 2011 08:34 PM, Mukesh Yadav wrote:
I'm trying to compress js file via shell script here is code
#!/bin/sh
for file in `find . -name "*.js"`
do
echo "Compressing $file ?"
java -jar ~/yuicompressor-2.4.6/build/yuicompressor-2.4.6.jar --type js -o
min/$file $file
done
but getting error an
bash: ./yuicompress.sh: /bin/sh^M: bad interpreter: No such file or
There is a DOS/Windows line-ending character ^M at the end of the
shebang line. Can you remove it and try running the script again?
'dos2unix' utility can help you do that or you could do a global search
and replace in your favorite editor or use sed or whichever way is
convenient for you.
Thanks & Regards,
Guruprasad
Other related posts: