Files
bash-it/test/fixtures/svn/working/svn
Nils Winkler 107cfe5daf Fixed comparison for SVN info parameter
Based on @arturmartins comment in #1615 - thanks!
2020-06-17 10:26:47 +02:00

11 lines
243 B
Bash
Executable File

#!/usr/bin/env bash
# If the info command is called
# AND the parent folder contains the .svn folder
# THEN return the current path, similar to what `svn info` does
if [[ "$1" == "info" ]] && [[ -d "../.svn" ]]; then
echo "$PWD"
fi
exit 0