From e424a66222b54a8c84297716e26745224a7a3c66 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 09 2012 01:28:01 +0000 Subject: Update `trunk/Scripts/Bash/Functions/Locale/locale_prepareWorkingDirectory.sh' file. --- diff --git a/Scripts/Bash/Functions/Locale/locale_prepareWorkingDirectory.sh b/Scripts/Bash/Functions/Locale/locale_prepareWorkingDirectory.sh index b2d5352..323f2ae 100755 --- a/Scripts/Bash/Functions/Locale/locale_prepareWorkingDirectory.sh +++ b/Scripts/Bash/Functions/Locale/locale_prepareWorkingDirectory.sh @@ -25,6 +25,8 @@ function locale_prepareWorkingDirectory { + local L10N_WORKDIR=$1 + if [[ ! -d ${L10N_WORKDIR} ]];then # Create localization working directory making parent @@ -39,6 +41,10 @@ function locale_prepareWorkingDirectory { # committed up to repository. cli_commitRepoChanges "${L10N_BASEDIR}" + elif [[ $L10N_WORKDIR == '' ]];then + + cli_printMessage "`gettext "The variable L10N_WORKDIR cannot be empty."`" --as-error-line + fi }