How can I get the result of a hg update command in bash and use the results?
I’m interested in a true/false value or something similar. One of the errors I’m interested on is unknown revision.
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.
First off I run it in a subshell and catch the output and exit code
then
Or you can if you are interested in true/false status run
or