diff --git a/Scripts/Bash/Functions/Commons/cli_printUrl.sh b/Scripts/Bash/Functions/Commons/cli_printUrl.sh index 363bb0f..865480d 100755 --- a/Scripts/Bash/Functions/Commons/cli_printUrl.sh +++ b/Scripts/Bash/Functions/Commons/cli_printUrl.sh @@ -113,8 +113,8 @@ function cli_printUrl { ;; --with-locale ) - if [[ ! $(cli_getCurrentLocale) =~ '^en' ]];then - URL="${URL}$(cli_getCurrentLocale '--langcode-only')/" + if [[ ! ${LANG} =~ '^en' ]];then + URL="${URL}$(${CLI_NAME} locale --get-current-langcode)/" fi shift 1 ;;