Checking for SVN return code

pull/1613/head
Nils Winkler 2020-06-14 19:31:25 +02:00
parent 2ba3797da6
commit 47512a1624
No known key found for this signature in database
GPG Key ID: 317C6E70C88A89B1
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ SVN_EXE=$(which svn 2> /dev/null || true)
# Check for broken SVN exe that is caused by some versions of Xcode. # Check for broken SVN exe that is caused by some versions of Xcode.
# See https://github.com/Bash-it/bash-it/issues/1612 for more details. # See https://github.com/Bash-it/bash-it/issues/1612 for more details.
if [[ -x "$SVN_EXE" ]] ; then if [[ -x "$SVN_EXE" ]] ; then
if "$SVN_EXE" 2>&1 | grep -q "subversion command line tools are no longer provided" ; then if ! "$SVN_EXE" --version > /dev/null 2>&1 ; then
# Unset the SVN exe variable so that SVN commands are avoided. # Unset the SVN exe variable so that SVN commands are avoided.
SVN_EXE="" SVN_EXE=""
fi fi