#!/bin/bash
cd ~/workspace/trunk;
svn up;
When I run ./build.sh form command line, it says:
: command not found
And nothing happens. How can I solve this ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Remove
;from the end of your script lines.This doesn’t happen in my bash, so I’m not sure what exactly is wrong, but my guess is this:
;is a separator of commands. Since your last command ends in;, your bash probably expects another command after. Since the script finishes, though, it reads an empty command, which it can’t execute.