| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function prepare_doEnvironment { |
| |
| |
| if [[ $FLAG_ENVIRONMENT == 'false' ]];then |
| return |
| fi |
| |
| |
| cli_printMessage "`gettext "Checking environment variables"`" --as-banner-line |
| |
| local -a VARS |
| local -a INFO |
| local COUNT=0 |
| |
| |
| |
| VARS[0]='EDITOR' |
| VARS[1]='TZ' |
| VARS[2]='TEXTDOMAIN' |
| VARS[3]='TEXTDOMAINDIR' |
| VARS[4]='LANG' |
| |
| |
| INFO[0]="`gettext "Default text editor"`" |
| INFO[1]="`gettext "Default time zone representation"`" |
| INFO[2]="`gettext "Default domain used to retrieve translated messages"`" |
| INFO[3]="`gettext "Default directory used to retrive translated messages"`" |
| INFO[4]="`gettext "Default locale information"`" |
| |
| until [[ $COUNT -eq ${#VARS[*]} ]];do |
| |
| |
| |
| if [[ ${VARS[$COUNT]} =~ $FLAG_FILTER ]];then |
| |
| |
| |
| |
| cli_printMessage "${INFO[$COUNT]}:" |
| cli_printMessage "${VARS[$COUNT]}=${!VARS[$COUNT]}" --as-response-line |
| |
| fi |
| |
| |
| COUNT=$(($COUNT + 1)) |
| |
| done |
| |
| } |