bash-it/test/fixtures/svn/working/svn

11 lines
242 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