0

Possible Duplicate:
Why am I getting “: No such file or directory” when trying to execute a bash script?

I have the following shell script..when running it the cd command keeps failing with below error..can anyone provide inputs what is wrong?

#\!/bin/sh
ANDROID_ROOT="/local/mnt/workspace/AU"
cd $ANDROID_ROOT 
source build/envsetup.sh                                     
lunch 12

: No such file or directoryal/mnt/workspace/AU
./test.sh: line 4: build/envsetup.sh: No such file or directory
<username:/local/mnt/workspace/username/scripts>
Community
  • 1
  • 1
user1927396
  • 449
  • 1
  • 9
  • 21

1 Answers1

1

The line endings are goofed up. Run it through dos2unix.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358