Commit a5bc97f7 authored by Robby Russell's avatar Robby Russell
Browse files

Merge pull request #1404 from Bklyn/master

Fix for "?" and "!" in svn status output
parents 1b4a23ac 91c57e6d
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment