Mercurial > hgsubversion
diff tools/common.sh @ 216:3c87de482011
tools: fixes for wc outputting with spaces.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 28 Mar 2009 14:26:35 -0500 |
parents | b1d2ea765516 |
children | 52cc0982dfcd |
line wrap: on
line diff
--- a/tools/common.sh +++ b/tools/common.sh @@ -9,7 +9,7 @@ function verify_current_revision() echo 'export failed!' return 255 fi - if [[ "`hg st | wc -l`" == "0" ]] ; then + if [[ "`hg st | wc -l | python -c 'import sys; print sys.stdin.read().strip()'`" == "0" ]] ; then return 0 else if [[ $1 != "keep" ]] ; then