From a1c6f09434ad2b1bd89921fb7be4a0152628dcfe Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Feb 04 2011 21:16:44 +0000 Subject: Update cli_checkRepoDirTarget.sh. --- diff --git a/Scripts/Bash/Functions/cli_checkRepoDirTarget.sh b/Scripts/Bash/Functions/cli_checkRepoDirTarget.sh index 01b4d75..a595fa7 100755 --- a/Scripts/Bash/Functions/cli_checkRepoDirTarget.sh +++ b/Scripts/Bash/Functions/cli_checkRepoDirTarget.sh @@ -27,7 +27,7 @@ function cli_checkRepoDirTarget { # Check target value before making an absolute path from it. - cli_checkPathComponent "$FLAG_TO" '--default' + cli_checkPathComponent "$FLAG_TO" '--default-repo-filesystem' # Redefine target value to build repository absolute path from # repository top level on. As we are removing @@ -59,12 +59,12 @@ function cli_checkRepoDirTarget { # for it. # Add directory to the top of the directory stack. - pushd "$(dirname $FLAG_TO)" > /dev/null + pushd "$(dirname "$FLAG_TO")" > /dev/null # Check directory existence inside the repository. if [[ $(pwd) =~ '^/home/centos/artwork' ]];then # Re-define target value using absolute path. - FLAG_TO=$(pwd)/$(basename $FLAG_TO) + FLAG_TO=$(pwd)/$(basename "$FLAG_TO") fi # Remove directory from the directory stack.