0
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-19 04:01:21 +02:00

fix(svn): fix output order in svn_dirty_choose (#10572)

This commit is contained in:
Fabian Günter 2022-01-08 19:59:59 +01:00 committed by GitHub
parent 4e2f4cdf68
commit 71e6d5fde8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,10 +67,10 @@ svn_dirty_choose() {
root=$(sed -n 's/^Working Copy Root Path: //p' <<< "${1:-$(LANG= svn info 2>/dev/null)}")
if LANG= svn status "$root" 2>/dev/null | command grep -Eq '^\s*[ACDIM!?L]'; then
# Grep exits with 0 when "One or more lines were selected", return "dirty".
echo $1
echo $2
else
# Otherwise, no lines were found, or an error occurred. Return clean.
echo $2
echo $3
fi
}