themes/base: don't invoke svn if possible

If we are specifically in the situation #1612, then check for a working `svn` command. If we're not in that situation, then don't waste time on it.
pull/1909/head
John D Pell 2021-09-10 23:15:49 -07:00
parent 9ea60020ae
commit 8c0860588d
3 changed files with 1 additions and 1 deletions

0
test/fixtures/svn/broken/xcrun vendored 100755
View File

View File

View File

@ -92,7 +92,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" && -x "${SVN_EXE%/*}/xcrun" ]]; then
if ! "$SVN_EXE" --version > /dev/null 2>&1; 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=""