From 78990f529a26be55fa2a2e5976206fb581f7beb1 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jul 24 2011 02:28:05 +0000 Subject: Update `cli_isVersioned.sh'. --- diff --git a/Scripts/Functions/cli_isVersioned.sh b/Scripts/Functions/cli_isVersioned.sh index 851ef98..19daeb8 100755 --- a/Scripts/Functions/cli_isVersioned.sh +++ b/Scripts/Functions/cli_isVersioned.sh @@ -27,6 +27,13 @@ function cli_isVersioned { + # Initialize absolute path using first positional parameter as + # reference. + local LOCATION="$1" + + # Verify location to be sure it really exists. + cli_checkFiles $LOCATION + # Use subversion to determine whether the location is under # version control or not. svn info $LOCATION &> /dev/null