From f128ead5926d4149fed0e73675239f15741653ce Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Dec 21 2010 12:44:22 +0000 Subject: Update cli_getRepoTopLevelPath: - Start using cli_getRepoTLDir function name. The previous one was too long. --- diff --git a/Scripts/Bash/Functions/cli_getRepoTopLevelPath.sh b/Scripts/Bash/Functions/cli_getRepoTopLevelPath.sh index 738981b..2ffdb08 100755 --- a/Scripts/Bash/Functions/cli_getRepoTopLevelPath.sh +++ b/Scripts/Bash/Functions/cli_getRepoTopLevelPath.sh @@ -1,8 +1,8 @@ #!/bin/bash # -# cli_getRepoTopLevelPath.sh -- This function returns the repository -# top level absolute path. The repository top level absolute path may -# be /home/centos/artwork/trunk, /home/centos/artwork/branches, or +# cli_getRepoTLDir.sh -- This function returns the repository top +# level absolute path. The repository top level absolute path may be +# /home/centos/artwork/trunk, /home/centos/artwork/branches, or # /home/centos/artwork/tags. This function uses action value to # determine which is the top level absolute path being used. # @@ -27,13 +27,9 @@ # $Id$ # ---------------------------------------------------------------------- -function cli_getRepoTopLevelPath { +function cli_getRepoTLDir { - local TOPLEVELPATH='' - - TOPLEVELPATH=$(echo $ACTIONVAL | sed -r \ + echo $ACTIONVAL | sed -r \ -e 's!^(/home/centos/artwork/(trunk|branches|tags)).+$!\1!') - echo $TOPLEVELPATH - }