Re: want to tell of there are uncommitted changes

2010-04-22 Thread Pat Farrell
Ryan Schmidt wrote: ==> > #!/bin/bash > > if [ -z "$(svn st)" ]; then > echo "working copy is pristine" > else > echo "working copy has changes" > fi Perfect. Thanks a lot -- Pat Farrell http://www.pfarrell.com/

Re: want to tell of there are uncommitted changes

2010-04-22 Thread David Weintraub
On Thu, Apr 22, 2010 at 2:32 PM, Pat Farrell wrote: > Hi, > > I'm trying to wrap a standard sequence of steps in a shell script > (linux/bash) and can't seem to figure out how to tell of the execution of > > svn status The "svn status" command returned 0 because it worked. It successfully reporte

Re: want to tell of there are uncommitted changes

2010-04-22 Thread Ryan Schmidt
On Apr 22, 2010, at 13:32, Pat Farrell wrote: > I'm trying to wrap a standard sequence of steps in a shell script > (linux/bash) and can't seem to figure out how to tell of the execution of > > svn status > > returned anything. For example > > ~/sandbox/$svn status > ? pat/foo > ~/sandbo

want to tell of there are uncommitted changes

2010-04-22 Thread Pat Farrell
Hi, I'm trying to wrap a standard sequence of steps in a shell script (linux/bash) and can't seem to figure out how to tell of the execution of svn status returned anything. For example ~/sandbox/$svn status ? pat/foo ~/sandbox/$echo $? 0 and if I delete the foo file, then the svn status