From 0496eea08466d1b8c2783c5b3e8b05d640471c93 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: May 30 2011 01:16:42 +0000 Subject: Update cli_getRepoTLDir: - When no action value is passed to centos-art.sh scrip, use `${HOME}/artwork/trunk' directory structure as default location. --- diff --git a/Scripts/Functions/cli_getRepoTLDir.sh b/Scripts/Functions/cli_getRepoTLDir.sh index f59e66e..a2f777b 100755 --- a/Scripts/Functions/cli_getRepoTLDir.sh +++ b/Scripts/Functions/cli_getRepoTLDir.sh @@ -54,14 +54,10 @@ function cli_getRepoTLDir { local LOCATION=$(echo $@ | sed -r 's!^.*--[[:space:]](.+)$!\1!') # Verify location passed as non-option argument. If no location is - # passed as non-option argument to this function, then evaluate - # the action value to set default location. - if [[ $LOCATION == '--' ]];then - if [[ $ACTIONVAL != '' ]];then - LOCATION=$ACTIONVAL - else - LOCATION=${HOME}/artwork/trunk - fi + # passed as non-option argument to this function, then set the + # trunk directory structure as default location. + if [[ $LOCATION =~ '--$' ]];then + LOCATION=${HOME}/artwork/trunk fi # Verify location where the working copy should be stored in the