1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-12 00:40:07 +00:00

Merge pull request #1404 from Bklyn/master

Fix for "?" and "!" in svn status output
This commit is contained in:
Robby Russell 2012-11-25 11:36:46 -08:00
commit a5bc97f76b

View file

@ -28,8 +28,8 @@ function svn_get_rev_nr {
function svn_dirty_choose {
if [ $(in_svn) ]; then
s=$(svn status|grep -E '^\s*[ACDIM!?L]' 2>/dev/null)
if [ $s ]; then
svn status 2> /dev/null | grep -Eq '^\s*[ACDIM!?L]'
if [ $pipestatus[-1] -ne 0 ]; then
echo $1
else
echo $2