1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 22:00:08 +00:00

Handle metachars in svn status output using grep -q

This commit is contained in:
Caleb Epstein 2012-11-12 11:53:09 -05:00
parent c2ae9e09ca
commit f2ac08832a

View file

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